Skip to content

Commit ab1d9b8

Browse files
committed
Draggable: Remove workaround for Safari 3.
1 parent 30c0644 commit ab1d9b8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ui/jquery.ui.draggable.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -400,13 +400,13 @@ $.widget("ui.draggable", $.ui.mouse, {
400400
pos.top // The absolute mouse position
401401
+ this.offset.relative.top * mod // Only for relative positioned nodes: Relative offset from element to offset parent
402402
+ this.offset.parent.top * mod // The offsetParent's offset without borders (offset + border)
403-
- ($.browser.safari && $.browser.version < 526 && this.cssPosition == 'fixed' ? 0 : ( this.cssPosition == 'fixed' ? -this.scrollParent.scrollTop() : ( scrollIsRootNode ? 0 : scroll.scrollTop() ) ) * mod)
403+
- ( ( this.cssPosition == 'fixed' ? -this.scrollParent.scrollTop() : ( scrollIsRootNode ? 0 : scroll.scrollTop() ) ) * mod)
404404
),
405405
left: (
406406
pos.left // The absolute mouse position
407407
+ this.offset.relative.left * mod // Only for relative positioned nodes: Relative offset from element to offset parent
408408
+ this.offset.parent.left * mod // The offsetParent's offset without borders (offset + border)
409-
- ($.browser.safari && $.browser.version < 526 && this.cssPosition == 'fixed' ? 0 : ( this.cssPosition == 'fixed' ? -this.scrollParent.scrollLeft() : scrollIsRootNode ? 0 : scroll.scrollLeft() ) * mod)
409+
- ( ( this.cssPosition == 'fixed' ? -this.scrollParent.scrollLeft() : scrollIsRootNode ? 0 : scroll.scrollLeft() ) * mod)
410410
)
411411
};
412412

@@ -460,14 +460,14 @@ $.widget("ui.draggable", $.ui.mouse, {
460460
- this.offset.click.top // Click offset (relative to the element)
461461
- this.offset.relative.top // Only for relative positioned nodes: Relative offset from element to offset parent
462462
- this.offset.parent.top // The offsetParent's offset without borders (offset + border)
463-
+ ($.browser.safari && $.browser.version < 526 && this.cssPosition == 'fixed' ? 0 : ( this.cssPosition == 'fixed' ? -this.scrollParent.scrollTop() : ( scrollIsRootNode ? 0 : scroll.scrollTop() ) ))
463+
+ ( ( this.cssPosition == 'fixed' ? -this.scrollParent.scrollTop() : ( scrollIsRootNode ? 0 : scroll.scrollTop() ) ))
464464
),
465465
left: (
466466
pageX // The absolute mouse position
467467
- this.offset.click.left // Click offset (relative to the element)
468468
- this.offset.relative.left // Only for relative positioned nodes: Relative offset from element to offset parent
469469
- this.offset.parent.left // The offsetParent's offset without borders (offset + border)
470-
+ ($.browser.safari && $.browser.version < 526 && this.cssPosition == 'fixed' ? 0 : ( this.cssPosition == 'fixed' ? -this.scrollParent.scrollLeft() : scrollIsRootNode ? 0 : scroll.scrollLeft() ))
470+
+ ( ( this.cssPosition == 'fixed' ? -this.scrollParent.scrollLeft() : scrollIsRootNode ? 0 : scroll.scrollLeft() ))
471471
)
472472
};
473473

0 commit comments

Comments
 (0)