Languages

Menu
Sites
Language
no double click event for tizen wearable?

Hello!!

I've got an event listener that works great with "click".  But I can't get  the "dblclick" event to work.  

This works fine:

document.querySelector("#myElement").addEventListener("click",function(){myEventHandler();});

This doesn't work, that is, myEventHandler is never called even when double tapping (double clicking) on myElement- note that the only difference between the code above and the code below is the use of "dblclick" instead of "click".

document.querySelector("#myElement").addEventListener("dblclick",function(){myEventHandler();});

Any ideas on how to add an event listener for a double tap/click?  BTW, the dblclick DOES work with the simulator, but not on the emulator and not on the actual device.  Using Tizen 2.3.1+ on Gear S2 Classic

Thanks in advance!

 

Edited by: Alan Buch on 11 Dec, 2018
View Selected Answer

Responses

2 Replies
Mark as answer
Armaan-Ul- Islam

Hello Alan Buch,

Please Implement Double tap gesture from this Code Snippet:

Tizen Developers > Community > Code Snippets >

Handle double tap events in web application

 

Thanks..

Alan Buch

Excellent.  Thanks to you and to  Kajetan Wilczek for the solution.