From f88677bfd68cce469d261d7ecc727d549def3340 Mon Sep 17 00:00:00 2001 From: Scott González Date: Sun, 14 Feb 2010 05:09:29 +0000 Subject: 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 --- ui/jquery.ui.draggable.js | 9 --------- 1 file changed, 9 deletions(-) (limited to 'ui') 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; -- cgit v1.2.3