pull/3617/head
Mitja Bezenšek 2024-04-26 13:32:05 +02:00
rodzic 7a8e7c9a18
commit 84ef667bf9
1 zmienionych plików z 3 dodań i 2 usunięć

Wyświetl plik

@ -73,14 +73,15 @@ export function DefaultMinimap() {
false
)
const _vpPageBounds = editor.getViewportPageBounds()
const clampedPoint = minimapRef.current.minimapScreenPointToPagePoint(
e.clientX,
e.clientY,
false,
true
)
const _vpPageBounds = editor.getViewportPageBounds()
minimapRef.current.isInViewport = _vpPageBounds.containsPoint(clampedPoint)
const commonBounds = Box.Common([editor.getCurrentPageBounds() ?? new Box(), _vpPageBounds])