MM-22165 Fix channel sidebar close gesture (#3879)

This commit is contained in:
Elias Nahum 2020-02-01 13:12:05 -03:00 committed by GitHub
parent 356282c138
commit 484e7068c3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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) {