[MM-44466] Prevent dragging of title bar button images (#2156)
This commit is contained in:
@@ -396,7 +396,10 @@ export default class MainPage extends React.PureComponent<Props, State> {
|
|||||||
className='button restore-button'
|
className='button restore-button'
|
||||||
onClick={this.handleRestore}
|
onClick={this.handleRestore}
|
||||||
>
|
>
|
||||||
<img src={restoreButton}/>
|
<img
|
||||||
|
src={restoreButton}
|
||||||
|
draggable={false}
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
@@ -405,7 +408,10 @@ export default class MainPage extends React.PureComponent<Props, State> {
|
|||||||
className='button max-button'
|
className='button max-button'
|
||||||
onClick={this.handleMaximize}
|
onClick={this.handleMaximize}
|
||||||
>
|
>
|
||||||
<img src={maximizeButton}/>
|
<img
|
||||||
|
src={maximizeButton}
|
||||||
|
draggable={false}
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@@ -463,14 +469,20 @@ export default class MainPage extends React.PureComponent<Props, State> {
|
|||||||
className='button min-button'
|
className='button min-button'
|
||||||
onClick={this.handleMinimize}
|
onClick={this.handleMinimize}
|
||||||
>
|
>
|
||||||
<img src={minimizeButton}/>
|
<img
|
||||||
|
src={minimizeButton}
|
||||||
|
draggable={false}
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
{maxButton}
|
{maxButton}
|
||||||
<div
|
<div
|
||||||
className='button close-button'
|
className='button close-button'
|
||||||
onClick={this.handleClose}
|
onClick={this.handleClose}
|
||||||
>
|
>
|
||||||
<img src={closeButton}/>
|
<img
|
||||||
|
src={closeButton}
|
||||||
|
draggable={false}
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
</span>
|
</span>
|
||||||
);
|
);
|
||||||
|
Reference in New Issue
Block a user