Fixed bounds for mouse handler.