FIX: don't use post ID as timeline collapse delay (#28712)

This commit is contained in:
Kris 2024-09-03 14:01:59 -04:00 committed by GitHub
parent 5d7fdfb0a6
commit 653ee734db
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -104,7 +104,7 @@ export default class TopicNavigation extends Component {
this._checkSize();
}
_collapseFullscreen(delay = 500) {
_collapseFullscreen(postId, delay = 500) {
if (this.get("info.topicProgressExpanded")) {
$(".timeline-fullscreen").removeClass("show");
discourseLater(() => {
@ -180,7 +180,7 @@ export default class TopicNavigation extends Component {
duration: durationMs,
fill: "forwards",
})
.finished.then(() => this._collapseFullscreen(0));
.finished.then(() => this._collapseFullscreen(null, 0));
} else {
const distancePx = this.pxClosed;
durationMs = this._swipeEvents.getMaxAnimationTimeMs(