Class: LongTouch

ol.interaction. LongTouch

Interaction to handle longtouch events


new LongTouch()

Parameters:
Name Type Argument Default Description
olx.interaction.LongTouchOptions
options.handleLongTouchEvent function | undefined

Function handling 'longtouch' events, it will receive a mapBrowserEvent. Or listen to the map 'longtouch' event.

options.pixelTolerance integer | undefined <optional>
0

pixel tolerance before drag, default 0

options.delay integer | undefined <optional>
1000

The delay for a long touch in ms, default is 1000

Extends

  • ol.interaction.Interaction