mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 02:20:41 +08:00
FIX: Couldn't reach the bottom of the scrollbar
This commit is contained in:
parent
321a11fe41
commit
6eb87e6f62
|
@ -172,10 +172,7 @@ createWidget('timeline-scrollarea', {
|
|||
topicCurrentPostScrolled(event) {
|
||||
const { postIndex, percent } = event;
|
||||
|
||||
// If the post number didn't change keep our scroll position
|
||||
if (this.state.scrolledPost !== postIndex) {
|
||||
this.state.percentage = this._percentFor(this.attrs.topic, parseFloat(postIndex) + percent);
|
||||
}
|
||||
},
|
||||
|
||||
_percentFor(topic, postIndex) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user