Skip to content

Fix aggressive zooming #1632

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 27, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/plots/gl2d/camera.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ function createCamera(scene) {
result.boxEnd[1] = dataY;

// we need to mark the box as initialized right away
// so that we can tell the start and end pionts apart
// so that we can tell the start and end points apart
result.boxInited = true;

// but don't actually enable the box until the cursor moves
Expand Down Expand Up @@ -189,6 +189,10 @@ function createCamera(scene) {
result.boxEnabled = false;
result.boxInited = false;
}
// if box was inited but button released then - reset the box
else if(result.boxInited) {
result.boxInited = false;
}
break;

case 'pan':
Expand Down