We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 460ac39 + 6253ad8 commit 93d5d0bCopy full SHA for 93d5d0b
src/plots/gl2d/camera.js
@@ -110,7 +110,7 @@ function createCamera(scene) {
110
result.boxEnd[1] = dataY;
111
112
// we need to mark the box as initialized right away
113
- // so that we can tell the start and end pionts apart
+ // so that we can tell the start and end points apart
114
result.boxInited = true;
115
116
// but don't actually enable the box until the cursor moves
@@ -189,6 +189,10 @@ function createCamera(scene) {
189
result.boxEnabled = false;
190
result.boxInited = false;
191
}
192
+ // if box was inited but button released then - reset the box
193
+ else if(result.boxInited) {
194
+ result.boxInited = false;
195
+ }
196
break;
197
198
case 'pan':
0 commit comments