Skip to content

Commit e663c77

Browse files
authored
Merge pull request #337 from vincentfretin/framerate-independent-rotation
[orbit-controls] Support frame rate independent autoRotate
2 parents ff681da + 0af17fe commit e663c77

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

components/orbit-controls/dist/aframe-orbit-controls.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1650,12 +1650,12 @@ AFRAME.registerComponent('orbit-controls', {
16501650
controls.zoomToCursor = data.zoomToCursor;
16511651
},
16521652

1653-
tick: function () {
1653+
tick: function (t, dt) {
16541654
var controls = this.controls;
16551655
var data = this.data;
16561656
if (!data.enabled) { return; }
16571657
if (controls.enabled && (controls.enableDamping || controls.autoRotate)) {
1658-
this.controls.update();
1658+
this.controls.update(dt / 1000);
16591659
}
16601660
},
16611661

0 commit comments

Comments
 (0)