Side navigation
#5928 closed bug (fixed)
Opened January 25, 2010 10:59PM UTC
Closed February 27, 2010 03:05PM UTC
Global mousemove ceased to function
| Reported by: | Znarkus | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | 1.4.1 |
| Component: | event | Version: | 1.4 |
| Keywords: | mousemove | Cc: | |
| Blocked by: | Blocking: |
Description
The $().mousemove event never fires. The docs for this is not working on three different computers PC/Mac, Firefox/Safari.
Attachments (0)
Change History (6)
Changed January 25, 2010 11:16PM UTC by comment:1
Changed January 26, 2010 12:00AM UTC by comment:2
The same code works perfectly with jQuery 1.3.2
Changed January 29, 2010 03:02AM UTC by comment:3
| resolution: | → invalid |
|---|---|
| status: | new → closed |
Use
$(document).mousemove()per the 1.4 release notes.
Changed February 17, 2010 10:22AM UTC by comment:4
| resolution: | invalid |
|---|---|
| status: | closed → reopened |
Documentation is still not working; it's using the old syntax. Confusion!
<script type="text/javascript">
jQuery(document).ready(function(){
$().mousemove(function(e){
$('#status').html(e.pageX +', '+ e.pageY);
});
})
</script>
Changed February 17, 2010 04:38PM UTC by comment:5
It took me about 5 minutes to figure out--but what he's saying is that on this page,
http://docs.jquery.com/Tutorials:Mouse_Position
it's still using the old $().movemove. Since that's still on the wiki--I've updated it to $(document).
Changed February 27, 2010 03:05PM UTC by comment:6
| component: | unfiled → event |
|---|---|
| resolution: | → fixed |
| status: | reopened → closed |
Thanks Mike - reclosing.
Reproduction code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <head> <title>Mouse move test</title> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script> <script type="text/javascript"> $(function(){ $('body').html('Move mouse!'); $().mousemove(function(e){ $('body').html(e.pageX + ', ' + e.pageY); }); }); </script> </head> <body></body> </html>