Skip to content

Commit eda0526

Browse files
committed
Sortable: Remove workaround for Safari 3.
1 parent 3ff2db2 commit eda0526

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ui/jquery.ui.sortable.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -887,13 +887,13 @@ $.widget("ui.sortable", $.ui.mouse, {
887887
pos.top // The absolute mouse position
888888
+ this.offset.relative.top * mod // Only for relative positioned nodes: Relative offset from element to offset parent
889889
+ this.offset.parent.top * mod // The offsetParent's offset without borders (offset + border)
890-
- ($.browser.safari && this.cssPosition == 'fixed' ? 0 : ( this.cssPosition == 'fixed' ? -this.scrollParent.scrollTop() : ( scrollIsRootNode ? 0 : scroll.scrollTop() ) ) * mod)
890+
- ( ( this.cssPosition == 'fixed' ? -this.scrollParent.scrollTop() : ( scrollIsRootNode ? 0 : scroll.scrollTop() ) ) * mod)
891891
),
892892
left: (
893893
pos.left // The absolute mouse position
894894
+ this.offset.relative.left * mod // Only for relative positioned nodes: Relative offset from element to offset parent
895895
+ this.offset.parent.left * mod // The offsetParent's offset without borders (offset + border)
896-
- ($.browser.safari && this.cssPosition == 'fixed' ? 0 : ( this.cssPosition == 'fixed' ? -this.scrollParent.scrollLeft() : scrollIsRootNode ? 0 : scroll.scrollLeft() ) * mod)
896+
- ( ( this.cssPosition == 'fixed' ? -this.scrollParent.scrollLeft() : scrollIsRootNode ? 0 : scroll.scrollLeft() ) * mod)
897897
)
898898
};
899899

@@ -944,14 +944,14 @@ $.widget("ui.sortable", $.ui.mouse, {
944944
- this.offset.click.top // Click offset (relative to the element)
945945
- this.offset.relative.top // Only for relative positioned nodes: Relative offset from element to offset parent
946946
- this.offset.parent.top // The offsetParent's offset without borders (offset + border)
947-
+ ($.browser.safari && this.cssPosition == 'fixed' ? 0 : ( this.cssPosition == 'fixed' ? -this.scrollParent.scrollTop() : ( scrollIsRootNode ? 0 : scroll.scrollTop() ) ))
947+
+ ( ( this.cssPosition == 'fixed' ? -this.scrollParent.scrollTop() : ( scrollIsRootNode ? 0 : scroll.scrollTop() ) ))
948948
),
949949
left: (
950950
pageX // The absolute mouse position
951951
- this.offset.click.left // Click offset (relative to the element)
952952
- this.offset.relative.left // Only for relative positioned nodes: Relative offset from element to offset parent
953953
- this.offset.parent.left // The offsetParent's offset without borders (offset + border)
954-
+ ($.browser.safari && this.cssPosition == 'fixed' ? 0 : ( this.cssPosition == 'fixed' ? -this.scrollParent.scrollLeft() : scrollIsRootNode ? 0 : scroll.scrollLeft() ))
954+
+ ( ( this.cssPosition == 'fixed' ? -this.scrollParent.scrollLeft() : scrollIsRootNode ? 0 : scroll.scrollLeft() ))
955955
)
956956
};
957957

0 commit comments

Comments
 (0)