
June 2nd, 2003, 09:35 PM
|
|
|
|
Join Date: Apr 2007
Location: Holland
Posts: 336
Time spent in forums: < 1 sec
Reputation Power: 2
|
|
|
RE: RE: buggy click and drag
Quote:
it's working just fine,
the issue was that the over was not getting set because I was setting it on the map (as you mentioned in relation to something else!) when I shifted it to the img itself, works like a charm
I agree with moving the down event to the img. I tried to do onMouseDown="MD()" and took off the call for the document. that did not work, it is back to the old way right now.
I do need to take off the document event trap correct? |
I took the liberty to adjusting your code to make it also work in Mozilla (by adding some DOM2 event model thingies), and placed the onmousedown in the imagetag; that way you don't need the over variable anymore.
Actually, the code has become more or less like my original example ;)
it's right here: http://www.allcrispy.com/upload/moving.html
|