septulium Posted November 8, 2016 Share Posted November 8, 2016 Hi, I'm using the ArcRotate camera as well as Hand.js to handle touch events on mobile devices. The touch event reproducing a "click" is working on every browser, but the drag and drop touch event (rotating the ArcRotate camera) is not working on Chrome (or Safari). It's working on firefox. I have tried to mess up with chrome://flags but it wouldn't work. Any ideas ? Thanks Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted November 9, 2016 Share Posted November 9, 2016 Hey! can you try with jQuery PEP ? Quote Link to comment Share on other sites More sharing options...
dbawel Posted November 10, 2016 Share Posted November 10, 2016 Hand.js will not provide you with what you require. Ask @Pryme8 how he handles multiple touch events, and be amazed. DB Quote Link to comment Share on other sites More sharing options...
Pryme8 Posted November 10, 2016 Share Posted November 10, 2016 I think it has to do with the timing of the touch and move, all touches fire as a click, but not all touches are a click if that makes since... umm what are you trying to accomplish? My advice is don't use hand.js... Quote Link to comment Share on other sites More sharing options...
septulium Posted November 10, 2016 Author Share Posted November 10, 2016 Thank you for your answers. I'll take a look at jQuery PEP. Basically I created a 3D map of my campus. I want it to be usable from a computer or a tablet on most browsers (chrome,firefox,safari). The most suitable ready-to-use camera in Babylon for this seems to be the ArcRotate one, although I am thinking of a different camera for this application: translate instead of rotate (without setTarget = 0) when doing the [click down,hold,move pointer,release] / [touch,hold finger on screen,move,release], and be able to move the camera along its target direction (zoom) when mouse scrolling or pinching. Quote Link to comment Share on other sites More sharing options...
dbawel Posted November 12, 2016 Share Posted November 12, 2016 Close... 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.