TESTING gifs
This commit is contained in:
parent
9c843d5847
commit
c7969ab97d
@ -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';
|
||||
|
Loading…
Reference in New Issue
Block a user