detect_guester
v1.2.5
Published
this is detect user guester plugin
Downloads
6
Maintainers
Readme
detect-guester-plugin
The plugin will detect user guester like swipe or long press etc...
ps:required jquery
detectGuester.longPress({
target: string, // html element, example: '#test'
wait_time: integer, // trigger callback after x seconds
callback: function(){....} // trigger callback
});
detectGuester.press({
target: string, // html element, example: '#test'
callback: function() {...} // trigger callback
});
detectGuester.rotate({
target: string, // html element, example: '#test'
callback: function() {....} // trigger callback
});
detectGuester.zoom({
target: string, // html element, example: '#test'
callback:function() {....}, // trigger callback
direction: string // in (zoom-in) or out (zoom-out)
})
</code>