Skip to content

Commit 07e57fa

Browse files
committed
fixed bug with mussing update after setting scrollTop/scrollLeft
1 parent f8a602b commit 07e57fa

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Scrollbar/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ export default class Scrollbar extends Component
8585
if (!this.content) { return; }
8686

8787
this.content.scrollTop = top;
88+
this.update();
8889
}
8990

9091
/**
@@ -107,6 +108,7 @@ export default class Scrollbar extends Component
107108
if (!this.content) { return; }
108109

109110
this.content.scrollLeft = left;
111+
this.update();
110112
}
111113

112114
/**

0 commit comments

Comments
 (0)