Bug Tracker

Modify

Ticket #1462 (closed bug: worksforme)

Opened 6 years ago

Last modified 14 months ago

$(document).mousemove does not work in IE

Reported by: fromvega Owned by:
Priority: major Milestone: 1.2.2
Component: event Version: 1.1.3
Keywords: mouse move mousemove Cc:
Blocking: Blocked by:

Description

The following code works fine both in Firefox and in IE7:

document.onmousemove = function(){

alert("Moved!");

};

But using jQuery it just work in Firefox:

$(document).mousemove(function(){

alert("Moved!");

});

Change History

comment:1 Changed 6 years ago by brandon

  • Milestone changed from 1.1.4 to 1.2.2

Are there other events that require DOM0 event handling to work cross-browser. Perhaps we could check against an array of these event types and use DOM0 if a match is found. Would we try to avoid clobbering existing DOM0 handlers of the same type?

comment:2 Changed 5 years ago by brandon

  • Status changed from new to closed
  • Resolution set to worksforme

This seems to be working just fine.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.