kopia lustrzana https://github.com/Tldraw/Tldraw
Update noteHelpers.ts
rodzic
e60f8d56a0
commit
5d7e38a7ed
|
@ -196,7 +196,6 @@ function zoomToShapeIfOffscreen(editor: Editor) {
|
|||
const selectionPageBounds = editor.getSelectionPageBounds()
|
||||
const viewportPageBounds = editor.getViewportPageBounds()
|
||||
if (selectionPageBounds && !viewportPageBounds.contains(selectionPageBounds)) {
|
||||
console.log('centering on point', viewportPageBounds, selectionPageBounds)
|
||||
editor.centerOnPoint(selectionPageBounds.center, {
|
||||
duration: ANIMATION_MEDIUM_MS,
|
||||
})
|
||||
|
|
Ładowanie…
Reference in New Issue