mirror of
https://github.com/wavetermdev/waveterm.git
synced 2024-12-22 16:48:23 +01:00
Fix tab drag events not registering state update
This commit is contained in:
parent
1d18a47f72
commit
c0309f1796
@ -22,7 +22,7 @@ let MagicLayout = {
|
|||||||
TermDescendersHeight: 3,
|
TermDescendersHeight: 3,
|
||||||
TermWidthBuffer: 15,
|
TermWidthBuffer: 15,
|
||||||
|
|
||||||
TabWidth: 175,
|
TabWidth: 154,
|
||||||
|
|
||||||
ScreenSidebarWidthPadding: 5,
|
ScreenSidebarWidthPadding: 5,
|
||||||
ScreenSidebarMinWidth: 200,
|
ScreenSidebarMinWidth: 200,
|
||||||
|
@ -21,7 +21,6 @@ class ScreenTabs extends React.Component<
|
|||||||
{ showingScreens: Screen[]; scrollIntoViewTimeout: number }
|
{ showingScreens: Screen[]; scrollIntoViewTimeout: number }
|
||||||
> {
|
> {
|
||||||
tabsRef: React.RefObject<any> = React.createRef();
|
tabsRef: React.RefObject<any> = React.createRef();
|
||||||
tabRefs: { [screenId: string]: React.RefObject<any> } = {};
|
|
||||||
lastActiveScreenId: string = null;
|
lastActiveScreenId: string = null;
|
||||||
dragEndTimeout = null;
|
dragEndTimeout = null;
|
||||||
scrollIntoViewTimeoutId = null;
|
scrollIntoViewTimeoutId = null;
|
||||||
@ -169,16 +168,6 @@ class ScreenTabs extends React.Component<
|
|||||||
// For touchpad events, do nothing and let the browser handle it
|
// For touchpad events, do nothing and let the browser handle it
|
||||||
}
|
}
|
||||||
|
|
||||||
@boundMethod
|
|
||||||
openScreenSettings(e: any, screen: Screen): void {
|
|
||||||
e.preventDefault();
|
|
||||||
e.stopPropagation();
|
|
||||||
mobx.action(() => {
|
|
||||||
GlobalModel.screenSettingsModal.set({ sessionId: screen.sessionId, screenId: screen.screenId });
|
|
||||||
})();
|
|
||||||
GlobalModel.modalsModel.pushModal(constants.SCREEN_SETTINGS);
|
|
||||||
}
|
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
let { showingScreens } = this.state;
|
let { showingScreens } = this.state;
|
||||||
let { session } = this.props;
|
let { session } = this.props;
|
||||||
|
Loading…
Reference in New Issue
Block a user