2

We don't want selection and highlight to happen on pan and pinch inputs but only with click events.

However, we are having a hard time to trigger the click event on touch screens. Any more than the slightest touch will trigger the pointermove / pan event.

Is it possible to alter the sensitivity of the touch pointermove event trigger?

We would like to trigger the pointermove only after a few hundred milliseconds and not immediately.

2

1 Answer 1

3

The map has a moveTolerance option https://openlayers.org/en/latest/apidoc/module-ol_Map-Map.html which defaults to 1 pixel. You can try specifying something larger.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.