@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