Fixed #6859 - Jquery.Simulate drag behaves incorrect when container scrolled#94
Fixed #6859 - Jquery.Simulate drag behaves incorrect when container scrolled#94danilsomsikov wants to merge 4 commits into
Conversation
…t. Fixed #6859 - Jquery.Simulate drag behaves incorrect when container scrolled
|
Thanks, can you please fix the spacing? Everything is crunched together and the var statement is indented with spaces instad of tabs. |
|
Is it better now? I used webinterface. Should I checkout and use normal client? |
|
The indentation is better, but everything is still crunched together. For example there are no spaces around any of the operators. |
|
Now I understand, sorry for this. |
|
After looking into this more, I'm not sure that this patch is correct. I'm going to discuss this change with Richard Worth. |
|
Thanks for your contribution. This helped me put together a test page that I believe clearly demonstrates the problem is limited to document scroll and the fix is needed in findCenter. See http://bugs.jqueryui.com/ticket/6859#comment:4 |
|
Thanks you for dealing with that. On Thu, May 26, 2011 at 12:02 PM, rdworth <
|
Coordinates for mouse events are based on element offset(), which are relative to page, but events are generated in client coordinates, which are relative to window. In the case of non-zero scroll coordinates will be wrong. I suggest following patch.