From 69c4e7a80b552ab4c8258d0f7223c8b2c93881ef Mon Sep 17 00:00:00 2001 From: AlexAlexandre Date: Wed, 15 Dec 2021 23:37:09 -0300 Subject: [PATCH] minor tweak --- app/views/RoomView/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/RoomView/index.tsx b/app/views/RoomView/index.tsx index 91e1ffd21..15612674b 100644 --- a/app/views/RoomView/index.tsx +++ b/app/views/RoomView/index.tsx @@ -1018,7 +1018,7 @@ class RoomView extends React.Component { const { input } = event; if (handleCommandScroll(event)) { const offset: number = input === 'UIKeyInputUpArrow' ? 100 : -100; - this.offset = this.offset ? (this.offset += offset) : this.offset; + this.offset += offset; this.flatList?.scrollToOffset({ offset: this.offset }); } else if (handleCommandRoomActions(event)) { this.goRoomActionsView();