Disallow resizing in layout editor on mobile

This was causing the layout settings to not be interactable, since the resizing element was blocking them.
This commit is contained in:
wooferzfg
2024-04-27 17:32:52 -04:00
parent de4ec35e4f
commit bfc28e479a
2 changed files with 3 additions and 1 deletions
+2 -1
View File
@@ -15,6 +15,7 @@ export interface Props {
layoutUrlCache: UrlCache,
layoutWidth: number,
layoutHeight: number,
isDesktop: boolean,
timer: LiveSplit.SharedTimerRef,
renderer: WebRenderer,
callbacks: Callbacks,
@@ -268,7 +269,7 @@ export class LayoutEditor extends React.Component<Props, State> {
},
)}
layoutUrlCache={this.props.layoutUrlCache}
allowResize={true}
allowResize={this.props.isDesktop}
width={this.props.layoutWidth}
height={this.props.layoutHeight}
renderer={this.props.renderer}
+1
View File
@@ -254,6 +254,7 @@ export class LiveSplit extends React.Component<Props, State> {
layoutUrlCache={this.state.layoutUrlCache}
layoutWidth={this.state.layoutWidth}
layoutHeight={this.state.layoutHeight}
isDesktop={this.state.isDesktop}
timer={this.state.timer}
renderer={this.state.renderer}
callbacks={this}