xeokit / xeokit-sdk

Open source JavaScript SDK for viewing high-detail, full-precision 3D BIM and AEC models in the Web browser.
https://xeokit.io
Other
728 stars 288 forks source link

Camera control default configuration broken on touch devices #313

Closed juho-ylikyla closed 4 years ago

juho-ylikyla commented 4 years ago

How to reproduce in version 1.1.0

  1. Go to any example in the Examples page with a phone or a tablet (e.g https://xeokit.github.io/xeokit-sdk/examples/#CameraControl_orbit_HolterTower)
  2. Pan or pinch with a finger gesture
  3. The controls are too delicate

Works better with this setting

cameraControl.dragRotationRate = 1;

... and with a change in TouchPanRotateAndDollyHandler.js

updates.dollyDelta = (d2 - d1) * 0.05;

juho-ylikyla commented 4 years ago

I'll close this issue, this is mostly fixed 👍