minor tweak

This commit is contained in:
AlexAlexandre 2021-12-15 23:37:09 -03:00
parent 4b9ed36fa5
commit 69c4e7a80b
1 changed files with 1 additions and 1 deletions

View File

@ -1018,7 +1018,7 @@ class RoomView extends React.Component<IRoomViewProps, any> {
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();