Skip to content

Commit 889b240

Browse files
committed
chore: cleanup
1 parent 31665ad commit 889b240

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

src/index.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -116,9 +116,6 @@ export class PersistentBottomSheet extends GridLayout {
116116
gestureHandler.on(GestureHandlerStateEvent, this.onGestureState, this);
117117
gestureHandler.attachToView(this);
118118
this.panGestureHandler = gestureHandler as any;
119-
// if (this.mainContent) {
120-
// this.initNativeGestureHandler(this.mainContent);
121-
// }
122119
}
123120
shouldStartGesture(data) {
124121
const safeAreatop = Utils.layout.toDeviceIndependentPixels(this.getSafeAreaInsets().top);
@@ -377,7 +374,6 @@ export class PersistentBottomSheet extends GridLayout {
377374
} else {
378375
touchY = (event.ios.touches.anyObject() as UITouch).locationInView(null).y;
379376
}
380-
// console.log('onToucht', event.action, this.lastTouchY, touchY);
381377
if (event.action === 'down') {
382378
// this.scrollViewTouched = true;
383379
// this.lastScrollY = this.scrollViewVerticalOffset;
@@ -411,18 +407,14 @@ export class PersistentBottomSheet extends GridLayout {
411407
this.panGestureHandler.cancel();
412408
}
413409
}
414-
// const height = this.viewHeight;
415-
// const viewY = this.translationY - height;
416410
const y = touchY - (this.lastTouchY || touchY);
417411
const trY = this.constrainY(this.translationY + y);
418412
const height = this.bottomViewHeight;
419-
// console.log('constraining on touch event', touchY, this.lastTouchY, y, trY);
420413
this.translationY = trY;
421414
const trData = this.computeTranslationData(height);
422415
this.applyTrData(trData);
423416
}
424417
this.lastTouchY = touchY;
425-
// console.log('setting lastTouchY', this.lastTouchY);
426418
}
427419
scrollViewAtTop: boolean = true;
428420
onScroll(event: ScrollEventData & { scrollOffset?: number }) {
@@ -484,7 +476,6 @@ export class PersistentBottomSheet extends GridLayout {
484476
}
485477
const y = deltaY - this.prevDeltaY;
486478
const trY = this.constrainY(this.translationY + y);
487-
console.log(this.translationY, y, trY);
488479
this.translationY = trY;
489480
const height = this.bottomViewHeight;
490481
const trData = this.computeTranslationData(height);

0 commit comments

Comments
 (0)