Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 71531

Use Hammer.js regardless

$
0
0

@cedche99 wrote:

Hello, I am designing an application with ionic in which I added in the folder "assets" library Hammer.js then a file ".js" in which I have implemented actions with this library. Unfortunately, this does not work, the events are not detected.

Here is an example of use:

HTML in ionic page

<div id="contentModel"> </div>

in JS file in asset

hammer = new Hammer.Manager( document.getElementById("contentModel"));
hammer.add(new Hammer.Pinch({ event: 'press'}));
hammer.on('press', function(ev){ console.log("toto");});

Need Help

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 71531

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>