why this onwheel
event not triggered?
#2213
Answered
by
mdynnl
daGaiGuanYu
asked this question in
Q&A
-
When I bind event like this, the click event is triggered normally, but the wheel event wouldn't be triggered. import { onMount } from 'solid-js'
function App() {
let div = <div style="width: 100px; height: 100px; background: black" />
div.onwheel = console.warn // not triggered
div.onclick = console.log // triggered
return div
} And this way, both triggered function App() {
let div
onMount(() => {
div.onwheel = console.warn
div.onclick = console.log
})
return <div ref={div} style="width: 100px; height: 100px; background: black" />
} Can anybody help me about this? THX!!! |
Beta Was this translation helpful? Give feedback.
Answered by
mdynnl
Jul 5, 2024
Replies: 1 comment 1 reply
-
it's a chrome bug initially reported on discord |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
daGaiGuanYu
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
it's a chrome bug initially reported on discord