-
Notifications
You must be signed in to change notification settings - Fork 0
Double-click/tap zoom #1
base: peek
Are you sure you want to change the base?
Conversation
|
||
if ( constraint.zoomScale !== desiredZoomScale ) { | ||
|
||
requestAnimationFrame( updateZoom ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not fully sure about managing a separate requestAnimationFrame besides the global tick of orbitcontrols. We should also respect enableDamping to either animate or go to the desired state immediately
|
||
if ( scope.enabled === false ) return; | ||
|
||
if ( isDoubleClick( event ) === true ) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe the doubletap can be initiated only after the touch state has been completed - after state = STATE.NONE;
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you mean this code block should be placed after state = STATE.NONE; ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes
@@ -429,6 +515,9 @@ module.exports = function(THREE) { | |||
|
|||
var state = STATE.NONE; | |||
|
|||
// for zoom toggle | |||
var dollyDirection; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not used anywhere
No description provided.