Win a copy of Design for the Mind this week in the Design 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