File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -194,7 +194,7 @@ export class ScrollView {
194
194
function setMax ( ) {
195
195
if ( ! max ) {
196
196
// ******** DOM READ ****************
197
- max = ( ele . scrollHeight - ele . offsetHeight ) + contentTop + contentBottom ;
197
+ max = ele . scrollHeight - ele . parentElement . offsetHeight + contentTop + contentBottom ;
198
198
}
199
199
} ;
200
200
@@ -208,6 +208,7 @@ export class ScrollView {
208
208
209
209
// update top with updated velocity
210
210
// clamp top within scroll limits
211
+ // ******** DOM READ ****************
211
212
setMax ( ) ;
212
213
self . _t = Math . min ( Math . max ( self . _t + ev . velocityY , 0 ) , max ) ;
213
214
@@ -242,6 +243,7 @@ export class ScrollView {
242
243
function jsScrollTouchStart ( touchEvent : TouchEvent ) {
243
244
positions . length = 0 ;
244
245
max = null ;
246
+ self . _dom . cancel ( rafCancel ) ;
245
247
positions . push ( pointerCoord ( touchEvent ) . y , touchEvent . timeStamp ) ;
246
248
}
247
249
You can’t perform that action at this time.
0 commit comments