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) => {
console.log("handleLoadedData:", e, this.hoverToPlay());
if (!this.hoverToPlay()) {
e.target.play();
}
}
hoverToPlay () {
const { attachment } = this.props;
return autoPlayGif === false && attachment.get('type') === 'gifv';