Add mouse handler to document. Helps with touch devices.