myrtille icon indicating copy to clipboard operation
myrtille copied to clipboard

Mouse click problems when using mobile devices

Open xuanzhi33 opened this issue 3 years ago • 9 comments
trafficstars

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!

xuanzhi33 avatar Jan 05 '22 05:01 xuanzhi33

What mobile device are you using?

cedrozor avatar Jan 07 '22 11:01 cedrozor

It's an Android tablet.

xuanzhi33 avatar Jan 07 '22 14:01 xuanzhi33

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?)

xuanzhi33 avatar Jan 14 '22 10:01 xuanzhi33

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

cedrozor avatar Jan 16 '22 19:01 cedrozor

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.

xuanzhi33 avatar Jan 21 '22 08:01 xuanzhi33

I'll try to see what else changed after 2.2.0, thanks for your feedback

cedrozor avatar Feb 04 '22 15:02 cedrozor

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.

image

ibonetti avatar Feb 07 '22 18:02 ibonetti

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.

image

ibonetti avatar Feb 08 '22 11:02 ibonetti

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

cedrozor avatar Feb 11 '22 11:02 cedrozor