Virtual whiteboard for sketching hand-drawn like diagrams
Fix scrollbars when no elements (#2460)
Christopher Chedeau5071cffb0213
diff --git a/src/scene/scrollbars.ts b/src/scene/scrollbars.tsindex 91e3a62767..24f10e7d7d 100644--- a/src/scene/scrollbars.ts+++ b/src/scene/scrollbars.ts@@ -23,6 +23,12 @@ export const getScrollBars = (zoom: Zoom;},): ScrollBars => {+ if (elements.length === 0) {+ return {+ horizontal: null,+ vertical: null,+ };+ }// This is the bounding box of all the elementsconst [elementsMinX,