| View previous topic :: View next topic |
| Author |
Message |
Mupolan
Joined: 30 May 2006 Posts: 101
|
| Hello all ... any idea how to reliably capture the mouse leaving the browser window so I can cancel my drag and drop? |
| |
|
|
|
|
autos06
Joined: 13 May 2006 Posts: 123 Location: New York
|
| Look how scriptaculous solved it. |
| |
|
|
Mupolan
Joined: 30 May 2006 Posts: 101
|
| autos06, looks like they didn't solve it, on their site I drag an object, move the mouse out of the window, release the mouse button, and then move the mouse back into the window and I'm still dragging with no mouse buttons down |
| |
|
|
autos06
Joined: 13 May 2006 Posts: 123 Location: New York
|
Okey  |
| |
|
|
ovigo22
Joined: 15 May 2006 Posts: 130
|
| Google, baby. it's all about google. |
| |
|
|
autos06
Joined: 13 May 2006 Posts: 123 Location: New York
|
I dont know if the cursor position will move each pixel at a time, or jump several pixels at a time, but maybe looking constantly to see if pixelposition == windowwidth-1 ?
Or look through specs. see if anything triggers specificaly when moving out of a window (maybe propretary, both IE and firefox have loads)
I ment, "maybe look if cursor position == windowwidth-1 (then the same for top, left and bottom) |
| |
|
|
Mupolan
Joined: 30 May 2006 Posts: 101
|
Looks like there is an ie onmouseleave but I can't find an ff equivalent
Yes, that might work |
| |
|
|
autos06
Joined: 13 May 2006 Posts: 123 Location: New York
| |
Mupolan
Joined: 30 May 2006 Posts: 101
|
Thanks, will read it
You could work around it with onkeypress |
| |
|
|
|