File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -520,8 +520,8 @@ export default function sortableContainer(WrappedComponent, config = {withRef: f
520
520
y : offset . y - this . initialOffset . y ,
521
521
} ;
522
522
// Adjust for window scroll
523
- translate . y -= ( ( window . scrollY || window . pageYOffset ) - this . initialWindowScroll . top ) ;
524
- translate . x -= ( ( window . scrollX || window . pageXOffset ) - this . initialWindowScroll . left ) ;
523
+ translate . y -= ( window . pageYOffset - this . initialWindowScroll . top ) ;
524
+ translate . x -= ( window . pageXOffset - this . initialWindowScroll . left ) ;
525
525
526
526
this . translate = translate ;
527
527
@@ -571,8 +571,8 @@ export default function sortableContainer(WrappedComponent, config = {withRef: f
571
571
top : this . offsetEdge . top + this . translate . y + deltaScroll . top ,
572
572
} ;
573
573
const scrollDifference = {
574
- top : ( ( window . scrollY || window . pageYOffset ) - this . initialWindowScroll . top ) ,
575
- left : ( ( window . scrollX || window . pageXOffset ) - this . initialWindowScroll . left ) ,
574
+ top : ( window . pageYOffset - this . initialWindowScroll . top ) ,
575
+ left : ( window . pageXOffset - this . initialWindowScroll . left ) ,
576
576
} ;
577
577
this . newIndex = null ;
578
578
You can’t perform that action at this time.
0 commit comments