Skip to content

Commit 8d04711

Browse files
authored
Merge pull request #16961 from sciecode/dev-orbit2
OrbitControls: refactoring
2 parents 4951a28 + 9396372 commit 8d04711

File tree

12 files changed

+744
-2531
lines changed

12 files changed

+744
-2531
lines changed

docs/examples/en/controls/OrbitControls.html

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -187,12 +187,12 @@ <h3>[property:Float minZoom]</h3>
187187
<h3>
188188
[property:Object mouseButtons]</h3>
189189
<p>
190-
This object contains references to the mouse buttons used for the controls.
190+
This object contains references to the mouse actions used by the controls.
191191
<code>
192192
controls.mouseButtons = {
193-
LEFT: THREE.MOUSE.LEFT,
194-
MIDDLE: THREE.MOUSE.MIDDLE,
195-
RIGHT: THREE.MOUSE.RIGHT
193+
LEFT: THREE.MOUSE.ROTATE,
194+
MIDDLE: THREE.MOUSE.DOLLY,
195+
RIGHT: THREE.MOUSE.PAN
196196
}
197197
</code>
198198
</p>
@@ -234,6 +234,17 @@ <h3>[property:Vector3 target]</h3>
234234
the focus of the controls.
235235
</p>
236236

237+
<h3>[property:Object touches]</h3>
238+
<p>
239+
This object contains references to the touch actions used by the controls.
240+
<code>
241+
controls.touches = {
242+
ONE: THREE.TOUCH.ROTATE,
243+
TWO: THREE.TOUCH.DOLLY_PAN
244+
}
245+
</code>
246+
</p>
247+
237248
<h3>[property:Float zoom0]</h3>
238249
<p>
239250
Used internally by the [method:saveState] and [method:reset] methods.

0 commit comments

Comments
 (0)