Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Fix one kind of scroll jump
Browse files Browse the repository at this point in the history
by calling onWidgetLoad when the <img> in MImageBody loads
  • Loading branch information
lukebarnard1 committed Dec 1, 2017
1 parent b26cf23 commit 641add4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/views/messages/MImageBody.js
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ module.exports = React.createClass({
<a href={contentUrl} onClick={this.onClick}>
<img className="mx_MImageBody_thumbnail" src={thumbUrl} ref="image"
alt={content.body}
onLoad={this.props.onWidgetLoad}
onMouseEnter={this.onImageEnter}
onMouseLeave={this.onImageLeave} />
</a>
Expand Down

0 comments on commit 641add4

Please sign in to comment.