Jump to content

Touch events no working properly on camera


Dos
 Share

Recommended Posts

Hi there,

Following the docs, I added PEP on my project to support touch events (and polyfill Safari by the way). But I cannot manage to get the arcRotateCamera to properly react to touch events.

When trying playground demos, it works as expected but on my project, the inputs seem to move a bit then stop responding. Sometimes it zooms in or out, sometimes it pans a little bit then stops.

Am I missing something here ?

This is how I init my camera :

this.camera = new BABYLON.ArcRotateCamera(
  'camera',
  1.2,
  1.3,
  180,
  new BABYLON.Vector3(0, 40, 0),
  this.scene
)
this.camera.attachControl(this.canvas, true)

Is it possible I miss something obvious here ?

PS: I also tried by removing any event listener just initing a scene in BJS with no success.

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...