Jump to content

Touch events in Chrome and Safari


septulium
 Share

Recommended Posts

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

Link to comment
Share on other sites

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. 

 

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...