Fix for cursor at edge for masking free draw.