TESTING gifs

This commit is contained in:
mgabdev 2020-01-17 14:13:31 -05:00
parent 432817741a
commit 7ec113a038
1 changed files with 2 additions and 5 deletions

View File

@ -188,9 +188,6 @@ class Item extends React.PureComponent {
role='application'
src={gifsrc}
type='video/mp4'
onClick={this.handleClick}
onMouseEnter={this.handleMouseEnter}
onMouseLeave={this.handleMouseLeave}
autoPlay={autoPlay}
preload='auto'
loop
@ -205,8 +202,8 @@ class Item extends React.PureComponent {
return (
<div className={classNames('media-gallery__item', { standalone })} key={attachment.get('id')} style={{ position, float, left, top, right, bottom, height, width: `${width}%` }}>
<canvas width={32} height={32} ref={this.setCanvasRef} className={classNames('media-gallery__preview', { 'media-gallery__preview--hidden': visible && this.state.loaded })} />
{visible && thumbnail}
<canvas width={32} height={32} ref={this.setCanvasRef} className={classNames('media-gallery__preview', { 'media-gallery__preview--hidden': true })} />
{thumbnail}
</div>
);
}