From 5f0df6eb49f7152a480f16eb6f662f81cf4d2166 Mon Sep 17 00:00:00 2001 From: Mattermost Build Date: Sat, 1 Feb 2020 17:15:32 +0100 Subject: [PATCH] MM-22165 Fix channel sidebar close gesture (#3882) Co-authored-by: Elias Nahum --- app/components/sidebars/drawer_layout.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/components/sidebars/drawer_layout.js b/app/components/sidebars/drawer_layout.js index ed52f804e..e0c525f77 100644 --- a/app/components/sidebars/drawer_layout.js +++ b/app/components/sidebars/drawer_layout.js @@ -454,7 +454,7 @@ export default class DrawerLayout extends Component { }; _panResponderMove = (e: EventType, { moveX, dx }: PanResponderEventType) => { - const useDx = Platform.OS === 'ios' && this.getDrawerPosition() === 'left'; + const useDx = Platform.OS === 'ios' && this.getDrawerPosition() === 'left' && !this._isClosing; let openValue = this._getOpenValueForX(useDx ? dx : moveX); if (this._isClosing) {