diff --git a/src/components/Sheet/SheetContent.tsx b/src/components/Sheet/SheetContent.tsx index 1d9ea631e9..b7e1efd220 100644 --- a/src/components/Sheet/SheetContent.tsx +++ b/src/components/Sheet/SheetContent.tsx @@ -16,7 +16,7 @@ const ACCELERATION_Y_MAX = 0.08; const ACCELERATION_Y_MIN = -0.02; // 90% from viewport const MAX_CONTENT_HEIGHT_FROM_VIEWPORT_COEFFICIENT = 0.9; -const WINDOW_RESIZE_TIMEOUT = 25; +const WINDOW_RESIZE_TIMEOUT = 50; let hashHistory: string[] = []; @@ -108,7 +108,6 @@ class SheetContent extends React.Component HIDE_THRESHOLD && @@ -362,7 +353,6 @@ class SheetContent extends React.Component= ACCELERATION_Y_MIN) || accelerationY > ACCELERATION_Y_MAX ) { - alert('> delte hide'); this.hide(); } else if (deltaY !== 0) { this.show(); @@ -399,7 +389,6 @@ class SheetContent extends React.Component { this.setState({veilTouched: true}); - alert('veil touched hide'); this.hide(); }; @@ -407,7 +396,6 @@ class SheetContent extends React.Component { + if (this.state.isAnimating) { + return; + } + this.setState({inWindowResizeScope: true}); if (this.resizeWindowTimer) {