Fixing object under cursor for masks