Skip to content
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