Geomap: Fix tooltip positioning when screen is scrolled (#94827)

* account for y-scrolling when positioning geomap tooltip

* remove config import
This commit is contained in:
Ashley Harrison 2024-10-17 09:42:58 +01:00 committed by GitHub
parent f9ba4e3e5d
commit 241dca57cf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -45,7 +45,7 @@ export const pointerMoveListener = (evt: MapBrowserEvent<MouseEvent>, panel: Geo
const { hoverPayload } = panel;
hoverPayload.pageX = mouse.pageX;
hoverPayload.pageY = mouse.pageY;
hoverPayload.pageY = mouse.pageY - window.scrollY;
hoverPayload.point = {
lat: hover[1],
lon: hover[0],