-
Notifications
You must be signed in to change notification settings - Fork 186
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Static/semi mode on touch devices creates new nipples or are not dragable #16
Comments
Thanks a lot for this. |
Also noticed this. |
This should have been fixed in 0.5.4 |
No. When I create two static nipples they both get id=0. My case is a simple gamepad style setup. Two simultaneous touches and zombie clones occur. |
Indeed, there is still a nasty bug... once again with multitouch 😞 It looks like it's because of listening / stop listening to events that is somehow un-sync with the mode in use. Working on it. |
0.5.6 should be better with multi-touch. |
Slightly better, no clones appear. But still, the id is duplicated to 0. When touching both one locks up and freezes. I believe this is a bug in the "static" mode? As said, isn't a good use-case a gamepad setup? Two side-by-side containers with one static-mode nipple-joystick in each. |
Can you show me some code sample so I can reproduce your setup? |
var joystickL = nipplejs.create({
zone: document.getElementById('left-pad'),
mode: 'static',
position: { left: '20%', top: '50%' },
color: 'green',
size: 200
});
var joystickR = nipplejs.create({
zone: document.getElementById('right-pad'),
mode: 'static',
position: { left: '80%', top: '50%' },
color: 'red',
size: 200
}); |
Thanks, I'm looking into this... for sure there is a problem with the lib. |
Great, thanks! |
Thank you for fast fix! |
Please note that there is an opened issue for the multi-instance problem #20. |
Very cool library, but have some issues on touch devices in static and semi mode
On Ipad Air 2, new instances will be created on each touch also in static and semi mode.
On Sony Z2 Tab, most of the time it will not create a new instance, but often the existing instance is not working/dragable (this could be reproduced in chrome developer console by using touch device mode).
The text was updated successfully, but these errors were encountered: