Skip to content

Commit 93d5d0b

Browse files
authored
Merge pull request #1632 from dfcreative/aggressive-zooming
Fix aggressive zooming
2 parents 460ac39 + 6253ad8 commit 93d5d0b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/plots/gl2d/camera.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ function createCamera(scene) {
110110
result.boxEnd[1] = dataY;
111111

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

116116
// but don't actually enable the box until the cursor moves
@@ -189,6 +189,10 @@ function createCamera(scene) {
189189
result.boxEnabled = false;
190190
result.boxInited = false;
191191
}
192+
// if box was inited but button released then - reset the box
193+
else if(result.boxInited) {
194+
result.boxInited = false;
195+
}
192196
break;
193197

194198
case 'pan':

0 commit comments

Comments
 (0)