Skip to content

Fixed #6859 - Jquery.Simulate drag behaves incorrect when container scrolled#94

Closed
danilsomsikov wants to merge 4 commits into
jquery:masterfrom
danilsomsikov:master
Closed

Fixed #6859 - Jquery.Simulate drag behaves incorrect when container scrolled#94
danilsomsikov wants to merge 4 commits into
jquery:masterfrom
danilsomsikov:master

Conversation

@danilsomsikov
Copy link
Copy Markdown

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.

…t. Fixed #6859 - Jquery.Simulate drag behaves incorrect when container scrolled
@scottgonzalez
Copy link
Copy Markdown
Member

Thanks, can you please fix the spacing? Everything is crunched together and the var statement is indented with spaces instad of tabs.

@danilsomsikov
Copy link
Copy Markdown
Author

Is it better now? I used webinterface. Should I checkout and use normal client?

@scottgonzalez
Copy link
Copy Markdown
Member

The indentation is better, but everything is still crunched together. For example there are no spaces around any of the operators.

@danilsomsikov
Copy link
Copy Markdown
Author

Now I understand, sorry for this.

@scottgonzalez
Copy link
Copy Markdown
Member

After looking into this more, I'm not sure that this patch is correct. I'm going to discuss this change with Richard Worth.

@rdworth
Copy link
Copy Markdown
Contributor

rdworth commented May 26, 2011

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

@rdworth rdworth closed this May 26, 2011
@danilsomsikov
Copy link
Copy Markdown
Author

Thanks you for dealing with that.

On Thu, May 26, 2011 at 12:02 PM, rdworth <
reply@reply.github.com>wrote:

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

Reply to this email directly or view it on GitHub:
#94 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants