Bug Tracker

Opened 11 years ago

Closed 11 years ago

#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:
Blocked by: Blocking:

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 (1)

comment:1 Changed 11 years ago by dmethvin

Resolution: invalid
Status: newclosed

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

Note: See TracTickets for help on using tickets.