mirror of
https://github.com/prometheus/prometheus.git
synced 2026-03-22 02:20:53 -04:00
getBoundingClientRect() was cached in the setSize hook, which only fires on chart creation/resize. The cached viewport-relative coordinates became stale after scrolling, causing the tooltip to appear increasingly offset on charts further down the page. Fixed by calling getBoundingClientRect() on every setCursor invocation to always get accurate viewport-relative coordinates. Signed-off-by: Julius Volz <julius.volz@gmail.com> |
||
|---|---|---|
| .. | ||
| api | ||
| ui | ||
| federate.go | ||
| federate_test.go | ||
| web.go | ||
| web_test.go | ||