Software Archive
Read-only legacy content
17061 Discussions

gesture,drag&over and longtap recognition

Alberto_G_
Beginner
834 Views

Hi, 
i just build an app with intelxdk, and it works great. Now i want to add some gesture, but the device don't recognize nothing. I tried with "onmousedown", "ondbclick" and "drag and drop". Every one talk about gesture_viewer demo inside intelxdk, but i can't find it. Can you send me some link or manual please 

best regards 
Alberto

0 Kudos
4 Replies
Hamilton_Tenório_da_
Valued Contributor I
834 Views

I´m using jquery.ui.touch-punch.min.js to drag objects. I don´t know if there is another or better way.

0 Kudos
Chris_P_Intel
Employee
834 Views

 jquery.ui.touch-punch is a simple way to make touch events behave like click events.

If you want something fancier, look into HammerJS

0 Kudos
Dale_S_Intel
Employee
834 Views

It looks like all roads lead to http://touchpunch.furf.com/

Dale

 

0 Kudos
Alberto_G_
Beginner
834 Views

Hi everyone, and thank you for the answer. 

What you suggested is exactly what I have in mind, but I was hoping it could be done without jquery.
I implemented the event onlongtap following this guide

https://developer.mozilla.org/en-US/docs/Web/Guide/Events/Touch_events#Example 

but still  not have solution for th drag and drop event.  I will Continue to work, but if I do not find a solution I will use jquery. Any other suggestions  are welcome. Thank you very much

Alberto

0 Kudos
Reply