JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q14363F
  • License ISC

this is detect user guester plugin

Package Exports

  • detect_guester

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (detect_guester) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

detect-guester-plugin

The plugin will detect user guester like swipe or long press etc...

ps:required jquery

you can git clone https://github.com/xingobar/detect-guester-plugin.git

step1: include jQuery:

    
        < script type="text/javascript" src="../src/jquery-3.3.1.min.js"/>
    

step2: include simple-drawer.js

    
        < script type="text/javascript" src="../dist/simple-drawer.min.js">
    

or you can use require

    var detectGuester = require('detect_guester');

description

    
        detectGuester.swipe({
           target: string , // html element, example: '#test',
           direction: string, // (top,down,left,right) detect user guester swipe direction
           callback: function(){...} // trigger callback
        });

    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>