fix table editing

This commit is contained in:
Alex Turchyn authored and Pete Matsyburka committed 2026-10-03 14:05:38 +03:00
1 parent 8f47ec6d4e
commit 4f5e72f983
4 files changed
+67 -25

No files matched your search

+1 -1
View File
@@ -2529,7 +2529,6 @@ export default {
if (nextZoom === this.zoomLevel) return
const container = this.$refs.pagesContainer
const scrollContainer = container.scrollHeight > container.clientHeight ? container : document.scrollingElement
const rect = this.$refs.documents.getBoundingClientRect()
this.zoomLevel = nextZoom
@@ -2539,6 +2538,7 @@ export default {
this.$nextTick(() => {
const nextRect = this.$refs.documents.getBoundingClientRect()
const scrollContainer = container.scrollHeight > container.clientHeight ? container : document.scrollingElement
container.scrollLeft += nextRect.left - clientX + (clientX - rect.left) * nextRect.width / rect.width
scrollContainer.scrollTop += nextRect.top - clientY + (clientY - rect.top) * nextRect.height / rect.height