I don't know exactly what your code looks like, but generally, you can listen for the mousedown on the target div, but the mousemove and mouseup you may want to listen on the body element or some enclosing parent div, because you are constantly moving the mouse out of the div. Also, make sure to stopPropagation() preventDefault() on the mousedown event so it does not turn into a click, which can also cause problems.
On Friday, January 4, 2013 10:54:28 AM UTC-8,
jken...@connectwise.com wrote:
We are trying to resize a DOM Div element on the mouse down event by setting the element top and height attribute. This seems to randomly set one or the other or sometimes both. The result is as the user drags the mouse the div keeps flicking and changing size. We tried setting one of the elements in schedule deferred but no luck.
We also have a mouse move event that just changes the height and it works fine.
Any ideas?