Skip to content

Commit 3dbdfee

Browse files
author
Adam Zielinski
committed
Added a comment explaining previous modification
1 parent cb07a80 commit 3dbdfee

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ui/jquery.ui.sortable.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -954,6 +954,9 @@ $.widget("ui.sortable", $.ui.mouse, {
954954
// 1. The position of the helper is absolute, so it's position is calculated based on the next positioned parent
955955
// 2. The actual offset parent is a child of the scroll parent, and the scroll parent isn't the document, which means that
956956
// the scroll is included in the initial calculation of the offset of the parent, and never recalculated upon drag
957+
//
958+
// this.scrollParent[0] !== document.body <-- this condition was added in order to deal with the following WebKit issue:
959+
// https://code.google.com/p/chromium/issues/detail?id=157855
957960
if(this.cssPosition === "absolute" && this.scrollParent[0] !== document && this.scrollParent[0] !== document.body && $.contains(this.scrollParent[0], this.offsetParent[0])) {
958961
po.left += this.scrollParent.scrollLeft();
959962
po.top += this.scrollParent.scrollTop();

0 commit comments

Comments
 (0)