Don't adjust cursor position if it's at end of mask