CloudMade/Leaflet — Issue #572: touch detection
Author: adriancarpenter
Created: 2012-03-09 19:03:31+00:00
State: open

The detection of whether or not touch support is enabled is always decided by the library, it would be ideal if the touch detection could be overridden such that you could have Auto, Disabled or Enabled to touch support.

I have just replaced google maps in a piece of desktop software with openstreetmap and leaflet. We use Qt with the built in Webkit browser, but the webkit browser that Qt build has "ontouchstart" in the document model, even on the desktop. This has the effect that the sloppy map doesn't work.

I have fixed this by always returning false in the touch function, but it would be convenient if this could be done programmatically rather than having to modify the original code.