e.stopPropagation();
}
- handleMouseDown = (e) => {
- e.preventDefault();
- e.stopPropagation();
- }
-
render () {
const { attachment, index, size, standalone, letterbox, displayWidth } = this.props;
onClick={this.handleClick}
onMouseEnter={this.handleMouseEnter}
onMouseLeave={this.handleMouseLeave}
- onMouseDown={this.handleMouseDown}
autoPlay={autoPlay}
loop
muted
this.setState({ revealed: false });
}
if (!nextProps.children && !!this.props.children) {
- this.activeElement.focus();
+ this.activeElement.focus({ preventScroll: true });
this.activeElement = null;
}
}