1
0
mirror of https://github.com/trezor/trezor-wallet synced 2024-11-13 20:08:56 +00:00

fixed redrawing Aside StickyContainer

This commit is contained in:
Szymon Lesisz 2018-05-11 16:55:39 +02:00
parent e0f5cbf709
commit b0d7891f5d

View File

@ -113,8 +113,8 @@ export default class StickyContainer extends React.PureComponent<Props> {
if (asideBounds.top < 0) {
window.scrollTo(0, getScrollY() + asideBounds.top);
this.topOffset = 0;
raf(this.update);
}
raf(this.update);
} else if (this.props.deviceSelection !== prevProps.deviceSelection) {
raf(this.update);
} else if (!this.firstRender) {