Skip to content

v2024.12.0

Latest
Compare
Choose a tag to compare
@github-actions github-actions released this 24 Dec 09:22
· 3 commits to master since this release
186a334

This is a service where you can add a listener to swipe events through the addSwipeListener function:

Registers the swipe listener on the specified component or on the whole document.

@param callbackKey {string} The key for which the listener will be added.
@param callback {Function} The callback function to be called when a swipe happens.
@param [swipeDirection] {string} Specify which swipe event to listen to. Can be null (any swipe) or 'up', 'down', 'left', 'right'
@param [component] {runtimecomponent} Component on which swipe event will be added. If null , listener will be added on html document.

@example plugins.swipeListener.addSwipeListener('test', onSwipe)

This listener can be removed by the second function removeSwipeListener based on the key (first parameter of the add)

This only works on touchscreen (mobile) devices where swipe events are generated.