This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to do not miss onmouseup?

 
dema rogatkin
Ranch Hand
Posts: 294
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
try playing with the Yahoo Drag and Drop api here: http://developer.yahoo.com/yui/dragdrop/index.html

Eric
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic