Skip to content
This repository has been archived by the owner on Oct 14, 2024. It is now read-only.

Double-click/tap zoom #1

Open
wants to merge 16 commits into
base: peek
Choose a base branch
from
Open

Double-click/tap zoom #1

wants to merge 16 commits into from

Conversation

ghost
Copy link

@ghost ghost commented Oct 16, 2015

No description provided.


if ( constraint.zoomScale !== desiredZoomScale ) {

requestAnimationFrame( updateZoom );
Copy link

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 ) {
Copy link

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;

Copy link
Author

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; ?

Copy link

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;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not used anywhere

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant