diff --git a/app/ui.js b/app/ui.js index c73c69c..3ad9984 100644 --- a/app/ui.js +++ b/app/ui.js @@ -556,6 +556,11 @@ var UI; .getBoundingClientRect(); var margin = 10; + // These heights need to be non-zero for the below logic to work + if (handleHeight === 0 || controlbarBounds.height === 0) { + return; + } + var newY = viewportRelativeY; // Check if the coordinates are outside the control bar