Fix mouse button handling