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