Fix mouse handling regression.