File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -144,8 +144,8 @@ export default function sortableContainer(WrappedComponent, config = {withRef: f
144
144
145
145
this . _touched = true ;
146
146
this . _pos = {
147
- x : e . clientX ,
148
- y : e . clientY ,
147
+ x : e . pageX ,
148
+ y : e . pageY ,
149
149
} ;
150
150
151
151
const node = closest ( e . target , el => el . sortableInfo != null ) ;
@@ -197,8 +197,8 @@ export default function sortableContainer(WrappedComponent, config = {withRef: f
197
197
198
198
if ( ! this . state . sorting && this . _touched ) {
199
199
this . _delta = {
200
- x : this . _pos . x - e . clientX ,
201
- y : this . _pos . y - e . clientY ,
200
+ x : this . _pos . x - e . pageX ,
201
+ y : this . _pos . y - e . pageY ,
202
202
} ;
203
203
const delta = Math . abs ( this . _delta . x ) + Math . abs ( this . _delta . y ) ;
204
204
@@ -440,9 +440,10 @@ export default function sortableContainer(WrappedComponent, config = {withRef: f
440
440
}
441
441
442
442
getOffset ( e ) {
443
+ debugger
443
444
return {
444
- x : e . touches ? e . touches [ 0 ] . clientX : e . clientX ,
445
- y : e . touches ? e . touches [ 0 ] . clientY : e . clientY ,
445
+ x : e . touches ? e . touches [ 0 ] . pageX : e . pageX ,
446
+ y : e . touches ? e . touches [ 0 ] . pageY : e . pageY ,
446
447
} ;
447
448
}
448
449
You can’t perform that action at this time.
0 commit comments