On move
When moving over element
Name
onMove
Type
Javascript
TypeScript
Default value
undefined
Description
Called when moving over element. Because long press binder will overwrite any movement handler, this callback is called when ANY movement occur (not necessarily after press). This way you can still call your regular movement handler using this callback.
All processing will happen only if element is pressed and cancelOnMovement option is enabled.
Since current position is extracted from event after this callback is called, you can potentially manipulate event position to model more complex behaviours. Position is extracted as follows:
Last updated