myrtille
myrtille copied to clipboard
Mouse click problems when using mobile devices
Hi, I have successfully installed Myrtille on my computer, but when I connected it with a mobile device, I just clicked the screen, but the effect of double clicking appeared on my computer, and I only wanted it to click once. May I ask what is the reason? How should I solve this problem? thank you!
What mobile device are you using?
It's an Android tablet.
I tried using an older version of Myrtille (2.2.0) and found no problem, but after version 2.3.0 I still have this touch problem on my computer. (Perhaps the swipe emulation feature of 2.3.0 caused the problem?)
Perhaps the swipe emulation feature of 2.3.0 caused the problem?
It's possible, yes. You can disable the swipe emulation here, for see (set to false):
https://github.com/cedrozor/myrtille/blob/b99671589ad0c18f7ccb0878d08e05bcb9cb15c6/Myrtille.Web/js/user.js#L53
Thank you very much, but when I tried to turn off the swipe simulation in the latest version, the problem still seems to exist, presumably due to something else.
I'll try to see what else changed after 2.2.0, thanks for your feedback
Hello,
I´m having de same problem. It happens even on desktop, if i use goole chrome developer tools an turn on the device tool bar.

Hi, i know it´s not a solution, but maybe can be a clue. The problem disappear if i remove the touchScreen eventListeners at tocuhscreen.js.

The mouse click an touch tap events are maybe overlapping... the same user action captured by both the mouse and touchscreen handlers, hence the double click result... strange, it never happened in the past (afaik). I'll have a look at this, but for those having this issue, you can disable the touchscreen (or mouse, on a mobile device) handler whatsoever by commenting this line:
touchscreen:
https://github.com/cedrozor/myrtille/blob/b99671589ad0c18f7ccb0878d08e05bcb9cb15c6/Myrtille.Web/Default.aspx#L62
mouse:
https://github.com/cedrozor/myrtille/blob/b99671589ad0c18f7ccb0878d08e05bcb9cb15c6/Myrtille.Web/Default.aspx#L61