kopia lustrzana https://github.com/Tldraw/Tldraw
Revert.
rodzic
7a8e7c9a18
commit
84ef667bf9
|
@ -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])
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue