nipplejs icon indicating copy to clipboard operation
nipplejs copied to clipboard

IOS Failure for new devices

Open unitree-czk opened this issue 6 years ago • 4 comments

Describe the bug A clear and concise description of what the bug is. For 0.7.3, my iPhone works properly for test/index2.html, For the latest version, the nipples are frozen on my iPhone's safari explorer and chrome explorer. example/dual-joysticks.html The weird part is that on my mac both safari and chrome works properly. I guess that there might be some issues with the event binding, but I am not sure. ios version 13.1.3

unitree-czk avatar Dec 03 '19 02:12 unitree-czk

if (!u.isPressed(evt)) { this.processOnEnd(evt); return; }

unitree-czk avatar Dec 03 '19 07:12 unitree-czk

I have done a deep analysis, and found out that if I comment out this line in the Collection.js, then IOS works properly.

unitree-czk avatar Dec 03 '19 07:12 unitree-czk

I am pretty sure that this line is crucial.

unitree-czk avatar Dec 03 '19 07:12 unitree-czk

I compared ios vs android. it seems that the For android phone evt.buttons = 1 while for ios evt.buttons = 0

unitree-czk avatar Dec 03 '19 07:12 unitree-czk