Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
Šimon Brandner 2021-07-13 09:19:19 +02:00
parent fa4977c4da
commit 6193bc2a82
No known key found for this signature in database
GPG Key ID: 9760693FDD98A790

View File

@ -148,7 +148,7 @@ export default class MImageBody extends React.Component<IProps, IState> {
imgElement.src = this.getContentUrl();
};
private onImageLeave = (e: React.MouseEvent): void => {
private onImageLeave = (e: React.MouseEvent<HTMLImageElement>): void => {
this.setState({ hover: false });
if (!this.state.showImage || !this.isGif() || SettingsStore.getValue("autoplayGifsAndVideos")) {