nipplejs
nipplejs copied to clipboard
IOS Failure for new devices
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
if (!u.isPressed(evt)) { this.processOnEnd(evt); return; }
I have done a deep analysis, and found out that if I comment out this line in the Collection.js, then IOS works properly.
I am pretty sure that this line is crucial.
I compared ios vs android. it seems that the For android phone evt.buttons = 1 while for ios evt.buttons = 0