|
|
@@ -758,9 +758,14 @@ const handleWindowMouseUp = () => {
|
|
|
|
|
|
const updateWrapperSize = () => {
|
|
|
if (!mapWrapperRef.value) return
|
|
|
+ const nextWidth = Math.round(mapWrapperRef.value.clientWidth)
|
|
|
+ const nextHeight = Math.round(mapWrapperRef.value.clientHeight)
|
|
|
+ if (wrapperSize.value.width === nextWidth && wrapperSize.value.height === nextHeight) {
|
|
|
+ return
|
|
|
+ }
|
|
|
wrapperSize.value = {
|
|
|
- width: mapWrapperRef.value.clientWidth,
|
|
|
- height: mapWrapperRef.value.clientHeight
|
|
|
+ width: nextWidth,
|
|
|
+ height: nextHeight
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -862,6 +867,7 @@ onBeforeUnmount(() => {
|
|
|
flex: 1;
|
|
|
position: relative;
|
|
|
overflow: auto;
|
|
|
+ scrollbar-gutter: stable both-edges;
|
|
|
background: var(--map-bg);
|
|
|
}
|
|
|
|