Two Laptop Bag
The moose likes HTML, CSS and JavaScript and the fly likes How to do not miss onmouseup? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "How to do not miss onmouseup?" Watch "How to do not miss onmouseup?" New topic

How to do not miss onmouseup?

dema rogatkin
Ranch Hand

Joined: Oct 09, 2002
Posts: 294
I'm trying to implement something like JSplitPane in JavaScript. Generally it works fine besides one thing. If a user moves divider too fast, browser takes onmousemove control from a divider element and tries to drag and drop it on its own. So if a user released mouse button, then onmouseup event is missed as well and my control stays in drag mode. Is any way to get full control of mouse? Should I call setCapture? In which context?

Tough in space?, <a href="" target="_blank" rel="nofollow">Get J2EE servlet container under 150Kbytes here</a><br />Love your iPod and want it anywhere?<a href="" target="_blank" rel="nofollow">Check it here.</a><br /><a href="" target="_blank" rel="nofollow">Curious about generic in Java?</a><br /><a href="" target="_blank" rel="nofollow">Hate ant? Use bee.</a><br /><a href="" target="_blank" rel="nofollow">Need contacts anywhere?</a><br /><a href="" target="_blank" rel="nofollow">How to promote your business with a search engine</a>
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385
try playing with the Yahoo Drag and Drop api here:

It is sorta covered in the JavaRanch Style Guide.
subject: How to do not miss onmouseup?
It's not a secret anymore!