Integrate Hammer.js problems
Posted: 00:24, 13 Oct 2015
Hi,
this is most likely a general javascript but I can't figure out the problem.
I am trying to load in the library hammer.js. I am using it with one of the Evothings examples.
This is my script sources:
When the code loads, the console logs "Pressed" without being pressed. It also will not work when I press the button.
I am not sure why it is doing this. Any ideas?
this is most likely a general javascript but I can't figure out the problem.
I am trying to load in the library hammer.js. I am using it with one of the Evothings examples.
This is my script sources:
Code: Select all
<script src="cordova.js"></script>
<script src="libs/evothings/evothings.js"></script>
<script src="libs/evothings/easyble/easyble.js"></script>
<script src="libs/jquery/jquery.js"></script>
<script src="libs/Hammer/hammer.min.js"></script>
<script src="libs/Hammer/jquery.hammer.js"></script>
<script src="app.js"></script>
Code: Select all
app.initialize = function()
{
$("#Button1").hammer().bind("press", console.log("Pressed"));
}
When the code loads, the console logs "Pressed" without being pressed. It also will not work when I press the button.
I am not sure why it is doing this. Any ideas?