Update noteHelpers.ts

pull/3297/head
Steve Ruiz 2024-04-03 16:32:47 +01:00
rodzic e60f8d56a0
commit 5d7e38a7ed
1 zmienionych plików z 0 dodań i 1 usunięć

Wyświetl plik

@ -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,
})