minor tweak
This commit is contained in:
parent
18b2f3388d
commit
60583eb517
|
@ -1004,12 +1004,12 @@ class RoomView extends React.Component<IRoomViewProps, any> {
|
|||
}
|
||||
};
|
||||
|
||||
handleCommands = ({ event }: any) => {
|
||||
handleCommands = ({ event }: { event: { input: string } }) => {
|
||||
if (this.rid) {
|
||||
const { input } = event;
|
||||
if (handleCommandScroll(event)) {
|
||||
const offset: any = input === 'UIKeyInputUpArrow' ? 100 : -100;
|
||||
this.offset += offset;
|
||||
const offset: number = input === 'UIKeyInputUpArrow' ? 100 : -100;
|
||||
this.offset = this.offset ? (this.offset += offset) : this.offset;
|
||||
this.flatList?.scrollToOffset({ offset: this.offset });
|
||||
} else if (handleCommandRoomActions(event)) {
|
||||
this.goRoomActionsView();
|
||||
|
|
Loading…
Reference in New Issue