adjust zoom

This commit is contained in:
Pete Matsyburka committed 2026-09-25 17:06:49 +03:00
1 parent 4225295295
commit 887ebbbcf6
1 file changed
+7 -1
+7 -1
View File
@@ -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()