1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-07 10:46:24 +03:00
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
Šimon Brandner
2021-07-13 09:18:05 +02:00
parent 2a403f6cfe
commit bdbd03c4ff

View File

@@ -138,7 +138,7 @@ export default class MImageBody extends React.Component<IProps, IState> {
return content.info?.mimetype === "image/gif";
};
private onImageEnter = (e: React.MouseEvent): void => {
private onImageEnter = (e: React.MouseEvent<HTMLImageElement>): void => {
this.setState({ hover: true });
if (!this.state.showImage || !this.isGif() || SettingsStore.getValue("autoplayGifsAndVideos")) {