|
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.
|