This isn't something I've played with, although I've got a user  
complaining of the same problem. Have you tried attaching it to the  
document or body?  You could also wrap all content in a div...

...And IE does allow attaching some events to window, "onload" being  
the most used. =)


TAG

On Feb 23, 2007, at 3:32 PM, Jeremy Chen wrote:

> Currently, my draggable element stops moving when my mouse moves  
> out of the browser window. If i do an onmouseup outside the window  
> area, and come back in the window, the draggable element will  
> follow my pointer until I click again. At that time, the draggable  
> element stays at that position and  will not revert.
> I can fix this problem by adding calling endDrag() on the window  
> object's onmouseout. However this only works in firefox because I  
> believe IE doesnt allow events to be attached on the window object.
> I know there is probably multiple solutions to this problem, but  
> just looking for an elegant cross-browser solution.
>
> thank you!
>
> >


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to