-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Multitouch behaviour #2338
Comments
Hi. This library works fine for me. |
Hi, Thanks for the suggestion It seems that, that lib uses pixijs on('touchmove') which is the same called once per finger in a pinch its called twice, I ended up implementing gesture myself using default touchmove event from html5 and some pixijs internals to map touch to local, this way is called less frequent (pool) even if two fingers moved |
Hi @stdiopt The touch events have an id that lets you differentiate between touches,
|
I don't think you get my point, the problem is not the identifier for each touch, the problem is the multiplexing of the event causing a possibility of performance issues, its explained on the links I sent. the amount of times the 'touchmove' event is called on pixijs is way higher than the default browser 'touchmove', example: in PIXI its being calculated that maximum of 60 times Per finger so its 120 events, basically doing twice the calculations of the same thing |
I think I understand, I guess my question would be are you actually experiencing any performance issues with the events as they are? |
Yes, I was getting performance problem on mobile (and was quite a diference), was trying to figure a way doing the touches with pixi, but ended up implementing the default html5 event |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Hi I was trying to create a pinch to scale feature, and come to realize that Event is being fired for every finger independently causing some excessive calls tho performance issues on mobile phones.
is there any plans in this matter? I've seen in code the InteractionManager "//TODO POOL"
The text was updated successfully, but these errors were encountered: