Partially fix overflow issues

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
Šimon Brandner 2021-02-24 11:15:59 +01:00
parent ab79deb88f
commit 899ce1f605
No known key found for this signature in database
GPG key ID: 9760693FDD98A790
2 changed files with 22 additions and 16 deletions

View file

@ -286,17 +286,19 @@ export default class ImageView extends React.Component {
</AccessibleButton>
</div>
</div>
<img
src={this.props.src}
title={this.props.name}
style={style}
className="mainImage"
draggable={true}
onMouseDown={this.onStartMoving}
onMouseMove={this.onMoving}
onMouseUp={this.onEndMoving}
onMouseLeave={this.onEndMoving}
/>
<div className="mx_ImageView_image_wrapper">
<img
src={this.props.src}
title={this.props.name}
style={style}
className="mx_ImageView_image"
draggable={true}
onMouseDown={this.onStartMoving}
onMouseMove={this.onMoving}
onMouseUp={this.onEndMoving}
onMouseLeave={this.onEndMoving}
/>
</div>
</div>
</FocusLock>
);