bosko Posted November 11, 2013 Share Posted November 11, 2013 Hi all, I'm new to pixi. I decided to switch game engine, I used in my game, with pixi. I must say it has AMAZING performance on mobile devices (ipad, nexus 7). All is great exept one thing I found: if I set mouse and touch events like this:sprite.mousedown = sprite.touchstart = func;Then, sometimes, on mobile devices, a single touch dispatch 2 touch events. After debuging, I realized that it was not 2 touch events, but one touch and one mouse event! How can mouse event be dispatched on mobile device? So, when I set events like this:if (mobile) { sprite.touchstart = func;} else { sprite.mousedown = func;}Then all is ok. But I think that it should work with first example too. It's better to write 1 line of code then 4. This way I'm forced to write a function which will set events in order to not repeat if-else over and over again.Thanks. Bosko benny! 1 Quote Link to comment Share on other sites More sharing options...
bubamara Posted November 12, 2013 Share Posted November 12, 2013 maybe this will help you : https://developers.google.com/mobile/articles/fast_buttons#ghost Quote Link to comment Share on other sites More sharing options...
benny! Posted November 12, 2013 Share Posted November 12, 2013 @bosko & bubamara:Did not know that either. Thanks for your posts. Quote Link to comment Share on other sites More sharing options...
bosko Posted November 13, 2013 Author Share Posted November 13, 2013 Ok, so we should use (Dolly) click buster according to Google.Hvala Daro za link. 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.