KaizokuCoder Posted January 15, 2014 Share Posted January 15, 2014 Multitouch is working for me in most situations, but there seems to be a problem with the touchend call. If I touch the same object with two touch points and then release them both, I only get a single call to touchend. This is causing me lots of problems. Is the behavior expected or is it a bug? Thanks. Quote Link to comment Share on other sites More sharing options...
LaczkoUr Posted January 20, 2014 Share Posted January 20, 2014 I have the same issue too.Maybe it is my fault, I just started playing with pixi.js This is my very first 'project' and I'm just trying out things, so it's a mess of code.But if someone could tell me what I've done wrong I would be happy. The screen is made from 3 input areas.upper-left part: fly updowner-left part: fly downright part: shoot(also works with up-down arrow, space) http://glatar.hu/mlpgame/1/ also, is it possible to identify the touch at touchend? Quote Link to comment Share on other sites More sharing options...
Mat Groves Posted January 21, 2014 Share Posted January 21, 2014 Hi guys! Will have to look into this as it sounds like a bug to me, sorry about that will keep you posted on its fix status. thanks! Quote Link to comment Share on other sites More sharing options...
cubiq Posted January 23, 2014 Share Posted January 23, 2014 this is pretty common in multi-touch development on iphone/ipad. Basically the touchend event is not fired for each touchstart, specifically when you release the fingers very quickly together. If you release them one after the other very slowly it usually works. The same actually happens with touchstart too if you tap too quickly with two fingers (only one is registered). So far the best workaround I've found is to traverse the event.touches array on touchend and check how many fingers are actually registered. Remember that touches are uniquely identified by event.touches[n].identifier, so it's pretty easy to know which finger did what. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.