Openlayers: Option for adjusting move distance tolerance

Created on 19 May 2017  路  3Comments  路  Source: openlayers/openlayers

If a users pan the map when clicking the click will be parsed as a move instead of a click. A group of our mobile users have problem with clicking on the map without triggering a move. Our suggested solution is to make the moveTolerance variable in ol.MapBrowserEventHandler configurable via a moveTolerance option in ol.Map.

Proposed implementation:
https://github.com/notnotse/openlayers/tree/move-tolerance-option

Most helpful comment

@nagytech I have read the guidlines and created a pull request here https://github.com/openlayers/openlayers/pull/6834

All 3 comments

is it related to #6776 ?

It is the same issue, however Jonas has provided a means for configuring the move tolerance instead of relying simply on the device pixel ratio.

@itjope Can you read through the developer guidelines for creating a pull request?

@nagytech I have read the guidlines and created a pull request here https://github.com/openlayers/openlayers/pull/6834

Was this page helpful?
0 / 5 - 0 ratings