mirror of
https://github.com/discourse/discourse.git
synced 2025-03-09 14:34:35 +00: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) {
|
topicCurrentPostScrolled(event) {
|
||||||
const { postIndex, percent } = event;
|
const { postIndex, percent } = event;
|
||||||
|
|
||||||
// If the post number didn't change keep our scroll position
|
this.state.percentage = this._percentFor(this.attrs.topic, parseFloat(postIndex) + percent);
|
||||||
if (this.state.scrolledPost !== postIndex) {
|
|
||||||
this.state.percentage = this._percentFor(this.attrs.topic, parseFloat(postIndex) + percent);
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
|
|
||||||
_percentFor(topic, postIndex) {
|
_percentFor(topic, postIndex) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user