mirror of
https://github.com/docusealco/docuseal
synced 2026-11-04 06:42:32 -05:00
fix table editing
This commit is contained in:
1 parent
8f47ec6d4e
commit
4f5e72f983
4 files changed
+67
-25
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user