diff options
author | Scott González <scott.gonzalez@gmail.com> | 2010-02-14 05:09:29 +0000 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2010-02-14 05:09:29 +0000 |
commit | f88677bfd68cce469d261d7ecc727d549def3340 (patch) | |
tree | 7873d6ec292af711172f5ebaf6c7d53f8abb8293 /ui/jquery.ui.draggable.js | |
parent | 0f3def0d84b5c9af737800380a5431e4fdeae63e (diff) | |
download | jquery-ui-f88677bfd68cce469d261d7ecc727d549def3340.tar.gz jquery-ui-f88677bfd68cce469d261d7ecc727d549def3340.zip |
Draggable: Don't recalculate the relative offset during drag. I couldn't reproduce the issues described in the comments for this code.
Fixes #4824 - draggable broken on inline elements in webkit browsers
Diffstat (limited to 'ui/jquery.ui.draggable.js')
-rw-r--r-- | ui/jquery.ui.draggable.js | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/ui/jquery.ui.draggable.js b/ui/jquery.ui.draggable.js index 4ecc3e295..f60c54c26 100644 --- a/ui/jquery.ui.draggable.js +++ b/ui/jquery.ui.draggable.js @@ -382,15 +382,6 @@ $.widget("ui.draggable", $.ui.mouse, { _generatePosition: function(event) { var o = this.options, scroll = this.cssPosition == 'absolute' && !(this.scrollParent[0] != document && $.ui.contains(this.scrollParent[0], this.offsetParent[0])) ? this.offsetParent : this.scrollParent, scrollIsRootNode = (/(html|body)/i).test(scroll[0].tagName); - - // This is another very weird special case that only happens for relative elements: - // 1. If the css position is relative - // 2. and the scroll parent is the document or similar to the offset parent - // we have to refresh the relative offset during the scroll so there are no jumps - if(this.cssPosition == 'relative' && !(this.scrollParent[0] != document && this.scrollParent[0] != this.offsetParent[0])) { - this.offset.relative = this._getRelativeOffset(); - } - var pageX = event.pageX; var pageY = event.pageY; |