We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 82b8210 commit f90e4efCopy full SHA for f90e4ef
packages/website/verse/Input.js
@@ -118,7 +118,6 @@ export class Input extends System {
118
if (e.repeat) return
119
if (this.isInputFocused()) return
120
const code = e.code
121
- // console.log(code)
122
const meta = e.metaKey
123
const ctrl = e.ctrlKey
124
const shift = e.shiftKey
@@ -216,8 +215,9 @@ export class Input extends System {
216
215
217
onWheel = e => {
218
e.preventDefault()
+ const delta = e.shiftKey ? e.deltaX : e.deltaY
219
for (const control of this.controls) {
220
- if (control.handler.zoom?.(e.deltaY)) {
+ if (control.handler.zoom?.(delta)) {
221
break
222
}
223
0 commit comments