TESTING gifs

This commit is contained in:
mgabdev 2020-01-21 16:34:36 -05:00
parent 9c843d5847
commit c7969ab97d

View File

@ -51,12 +51,12 @@ class Item extends React.PureComponent {
} }
handleLoadedData = (e) => { handleLoadedData = (e) => {
console.log("handleLoadedData:", e, this.hoverToPlay());
if (!this.hoverToPlay()) { if (!this.hoverToPlay()) {
e.target.play(); e.target.play();
} }
} }
hoverToPlay () { hoverToPlay () {
const { attachment } = this.props; const { attachment } = this.props;
return autoPlayGif === false && attachment.get('type') === 'gifv'; return autoPlayGif === false && attachment.get('type') === 'gifv';