mirror of
https://github.com/docusealco/docuseal
synced 2026-11-04 14:42:32 -05:00
adjust zoom
This commit is contained in:
1 parent
4225295295
commit
887ebbbcf6
1 file changed
+7
-1
@@ -2434,7 +2434,13 @@ export default {
|
||||
this.isBreakpointMd = width < breakpointMd
|
||||
},
|
||||
onPagesWheel (event) {
|
||||
if (!event.ctrlKey && !event.metaKey) return
|
||||
const isFastScroll = Math.abs(event.deltaY) > 1
|
||||
|
||||
if ((!event.ctrlKey && !event.metaKey) || (isFastScroll && event.timeStamp - this.lastFastScrollAt < 150)) {
|
||||
if (isFastScroll) this.lastFastScrollAt = event.timeStamp
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
event.preventDefault()
|
||||
|
||||
|
||||
Reference in new issue
Block a user