diff --git a/src/plots/gl2d/camera.js b/src/plots/gl2d/camera.js index 6913bd77d86..e50cdae6012 100644 --- a/src/plots/gl2d/camera.js +++ b/src/plots/gl2d/camera.js @@ -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 @@ -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':