before mouse handling