Module-documentation

version 1.0.0
module: event-mobile
maintanance: Marco Asbreuk
home
all modules

tripletap-events

Gesture-events can be listened by without an emitterName. By using the `filter`-argument you specify which node to listen to. Because the filter (selector) is a String, we can pass it as 3rd parameter.

Tripple-tap on the Show popup to show a pop-up.

Code-example:

<body>
    <button id="buttongo" class="pure-button pure-button-primary pure-button-bordered">Show popup</button>
</body>
<script src="itsabuild-min.js"></script>
<script>
    var showMsg = function(e) {
        alert('Button was triple tapped');
    };

    ITSA.Event.after('tripletap', showMsg, '#buttongo');
</script>
API Docs