mirror of
https://github.com/ApfelTeeSaft/LiveSplitOne.git
synced 2026-09-03 11:53:24 +00:00
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:
@@ -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}
|
||||
|
||||
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user