Vue: Can't bind firefox wheel event in vue.

Created on 5 Sep 2016  ·  2Comments  ·  Source: vuejs/vue

Vue.js version

1.0.26

Reproduction Link

jsFiddle

Steps to reproduce

  1. bind mousewheel event
  2. mousewheel event is different between firefox and chrome, so I bind two events, which are mousewheel and DOMMouseScroll
    ### What is Expected?
    Both events should work.

    What is actually happening?

It only works in chrome.

My opinion

HTML attributes are case-insensitive, so DOMMouseScroll equals dommousescroll in HTML, and firefox does't have event named dommousescroll.

What should I do?

Most helpful comment

What should I do?

Use wheel event - https://developer.mozilla.org/en-US/docs/Web/Events/wheel

All 2 comments

What should I do?

Use wheel event - https://developer.mozilla.org/en-US/docs/Web/Events/wheel

Was this page helpful?
0 / 5 - 0 ratings