Modify ↓
Ticket #11571 (closed bug: invalid)
Problem with preventdefault on mousedown event in Internet Explorer 8
| Reported by: | frgformenton@… | Owned by: | |
|---|---|---|---|
| Priority: | undecided | Milestone: | None |
| Component: | unfiled | Version: | 1.7.1 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
This demo locks the scroll when the user clicks with the mouse wheel button http://jsbin.com/agoyum/edit#source but this does not work in IE8 The preventDefault just does not work.
- - - -
This example is the same thing, but does not use jQuery, and works perfectly in IE8 http://jsbin.com/isefek/edit#source Note that the PreventDafault works correctly.
- - - -
This is a bug in the implementation of the method 'on' from jquery?
Change History
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

jQuery doesn't normalize event.button, look at event.which instead or take your chances with event.originalEvent properties.