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) {
|
if (this.rid) {
|
||||||
const { input } = event;
|
const { input } = event;
|
||||||
if (handleCommandScroll(event)) {
|
if (handleCommandScroll(event)) {
|
||||||
const offset: any = input === 'UIKeyInputUpArrow' ? 100 : -100;
|
const offset: number = input === 'UIKeyInputUpArrow' ? 100 : -100;
|
||||||
this.offset += offset;
|
this.offset = this.offset ? (this.offset += offset) : this.offset;
|
||||||
this.flatList?.scrollToOffset({ offset: this.offset });
|
this.flatList?.scrollToOffset({ offset: this.offset });
|
||||||
} else if (handleCommandRoomActions(event)) {
|
} else if (handleCommandRoomActions(event)) {
|
||||||
this.goRoomActionsView();
|
this.goRoomActionsView();
|
||||||
|
|
Loading…
Reference in New Issue