Skip to content

Commit b2af26f

Browse files
committed
add will-change: transform to overlay view anchor
1 parent fdb78b1 commit b2af26f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/script/src/runtime/components/GoogleMaps/ScriptGoogleMapsOverlayView.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -349,10 +349,11 @@ defineExpose<ScriptGoogleMapsOverlayViewExpose>({ overlayView, dataState })
349349
<div
350350
ref="overlay-anchor" :style="{
351351
position: 'absolute',
352-
left: `${overlayPosition?.x ?? 0 + (props.offset?.x ?? 0)}px`,
353-
top: `${overlayPosition?.y ?? 0 + (props.offset?.y ?? 0)}px`,
352+
left: `${overlayPosition?.x ?? 0}px`,
353+
top: `${overlayPosition?.y ?? 0}px`,
354354
transform: ANCHOR_TRANSFORMS[anchor],
355355
zIndex,
356+
willChange: 'transform',
356357
visibility: open ? 'visible' : 'hidden',
357358
pointerEvents: open ? 'auto' : 'none',
358359
}"

0 commit comments

Comments
 (0)