Fix opening/closing gifv sometimes making the timeline scroll

This commit is contained in:
Thibaut Girka
2019-04-16 18:45:04 +02:00
committed by ThibG
parent f11ad4023c
commit fbec0edf08
3 changed files with 2 additions and 7 deletions

View File

@@ -82,11 +82,6 @@ class Item extends React.PureComponent {
e.stopPropagation();
}
handleMouseDown = (e) => {
e.preventDefault();
e.stopPropagation();
}
render () {
const { attachment, index, size, standalone, letterbox, displayWidth } = this.props;
@@ -190,7 +185,6 @@ class Item extends React.PureComponent {
onClick={this.handleClick}
onMouseEnter={this.handleMouseEnter}
onMouseLeave={this.handleMouseLeave}
onMouseDown={this.handleMouseDown}
autoPlay={autoPlay}
loop
muted