Handle the grab cursor