mirror of
https://github.com/trezor/trezor-wallet
synced 2024-11-24 09:18:09 +00:00
fixed redrawing Aside StickyContainer
This commit is contained in:
parent
e0f5cbf709
commit
b0d7891f5d
@ -113,8 +113,8 @@ export default class StickyContainer extends React.PureComponent<Props> {
|
|||||||
if (asideBounds.top < 0) {
|
if (asideBounds.top < 0) {
|
||||||
window.scrollTo(0, getScrollY() + asideBounds.top);
|
window.scrollTo(0, getScrollY() + asideBounds.top);
|
||||||
this.topOffset = 0;
|
this.topOffset = 0;
|
||||||
raf(this.update);
|
|
||||||
}
|
}
|
||||||
|
raf(this.update);
|
||||||
} else if (this.props.deviceSelection !== prevProps.deviceSelection) {
|
} else if (this.props.deviceSelection !== prevProps.deviceSelection) {
|
||||||
raf(this.update);
|
raf(this.update);
|
||||||
} else if (!this.firstRender) {
|
} else if (!this.firstRender) {
|
||||||
|
Loading…
Reference in New Issue
Block a user