File tree 1 file changed +2
-5
lines changed
packages/base/src/delegate
1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -94,9 +94,6 @@ class ScrollEnablement extends EventProvider {
94
94
isLeft : dragX > this . _prevDragX ,
95
95
isRight : dragX < this . _prevDragX ,
96
96
} ) ;
97
-
98
- this . _prevDragX = dragX ;
99
- this . _prevDragY = dragY ;
100
97
}
101
98
102
99
ontouchend ( event ) {
@@ -105,8 +102,8 @@ class ScrollEnablement extends EventProvider {
105
102
}
106
103
107
104
const container = this . _container ;
108
- const dragX = this . isPhone ? event . pageX : event . x ;
109
- const dragY = this . isPhone ? event . pageY : event . y ;
105
+ const dragX = this . isPhone ? event . changedTouches [ 0 ] . pageX : event . x ;
106
+ const dragY = this . isPhone ? event . changedTouches [ 0 ] . pageY : event . y ;
110
107
111
108
container . scrollLeft += this . _prevDragX - dragX ;
112
109
container . scrollTop += this . _prevDragY - dragY ;
You can’t perform that action at this time.
0 commit comments