Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
mousemove events in firefox
Old 04-21-2006, 03:52 PM mousemove events in firefox
Junior Talker

Posts: 1
Trades: 0
I'm working on an ajax based mapping system for a university project and I've run into problems. I was hoping that someone here might have run into similar issues and could provide some advice on solving them.

Whenever the user clicks the map it set's the onmousemove event for the document to be my update function i.e.
document.onmousemove = Update;

and when the mouse is released I clear the event
document.onmousemove = null;

This works exactly as expected in Opera, Safari, and Firefox 1.0.7
However I recently upgraded to Firefox 1.5.0.2 and things aren't working anymore. Firefox seems to be ignoring events during a drag. So if a user clicks and drags then two issues occur:

First there are only one or two mousemove events generated - then nothing.
Second the mouseup event at the end of the drag never seems to occur.

If you just click the mouse in place both mousedown and mouseup events are generated as expected. Likewise if you move the mouse with the button up mousemove events are generated correctly.

I've tried a fair amount of googling but havn't had any luck - I was hoping someone might be familier with the problem and could point me in the right direction.
chowe6685 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 04-21-2006, 08:10 PM Re: mousemove events in firefox
vangogh's Avatar
Post Impressionist

Posts: 10,688
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
I'm not enough of a JavaScript expert to specifically answer, but I found some code at the Yahoo Developer's Network that I know works with my Firefox 1.5.0.2 browser. I know the drag and drop works.

Sorry I couldn't answer directly, but hopefully the code there will have what you need.
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Reply     « Reply to mousemove events in firefox
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.15959 seconds with 12 queries