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