@@ -116,9 +116,6 @@ export class PersistentBottomSheet extends GridLayout {
116
116
gestureHandler . on ( GestureHandlerStateEvent , this . onGestureState , this ) ;
117
117
gestureHandler . attachToView ( this ) ;
118
118
this . panGestureHandler = gestureHandler as any ;
119
- // if (this.mainContent) {
120
- // this.initNativeGestureHandler(this.mainContent);
121
- // }
122
119
}
123
120
shouldStartGesture ( data ) {
124
121
const safeAreatop = Utils . layout . toDeviceIndependentPixels ( this . getSafeAreaInsets ( ) . top ) ;
@@ -377,7 +374,6 @@ export class PersistentBottomSheet extends GridLayout {
377
374
} else {
378
375
touchY = ( event . ios . touches . anyObject ( ) as UITouch ) . locationInView ( null ) . y ;
379
376
}
380
- // console.log('onToucht', event.action, this.lastTouchY, touchY);
381
377
if ( event . action === 'down' ) {
382
378
// this.scrollViewTouched = true;
383
379
// this.lastScrollY = this.scrollViewVerticalOffset;
@@ -411,18 +407,14 @@ export class PersistentBottomSheet extends GridLayout {
411
407
this . panGestureHandler . cancel ( ) ;
412
408
}
413
409
}
414
- // const height = this.viewHeight;
415
- // const viewY = this.translationY - height;
416
410
const y = touchY - ( this . lastTouchY || touchY ) ;
417
411
const trY = this . constrainY ( this . translationY + y ) ;
418
412
const height = this . bottomViewHeight ;
419
- // console.log('constraining on touch event', touchY, this.lastTouchY, y, trY);
420
413
this . translationY = trY ;
421
414
const trData = this . computeTranslationData ( height ) ;
422
415
this . applyTrData ( trData ) ;
423
416
}
424
417
this . lastTouchY = touchY ;
425
- // console.log('setting lastTouchY', this.lastTouchY);
426
418
}
427
419
scrollViewAtTop : boolean = true ;
428
420
onScroll ( event : ScrollEventData & { scrollOffset ?: number } ) {
@@ -484,7 +476,6 @@ export class PersistentBottomSheet extends GridLayout {
484
476
}
485
477
const y = deltaY - this . prevDeltaY ;
486
478
const trY = this . constrainY ( this . translationY + y ) ;
487
- console . log ( this . translationY , y , trY ) ;
488
479
this . translationY = trY ;
489
480
const height = this . bottomViewHeight ;
490
481
const trData = this . computeTranslationData ( height ) ;
0 commit comments