FIX: don't use post ID as timeline collapse delay (#28712)
This commit is contained in:
parent
5d7fdfb0a6
commit
653ee734db
|
@ -104,7 +104,7 @@ export default class TopicNavigation extends Component {
|
||||||
this._checkSize();
|
this._checkSize();
|
||||||
}
|
}
|
||||||
|
|
||||||
_collapseFullscreen(delay = 500) {
|
_collapseFullscreen(postId, delay = 500) {
|
||||||
if (this.get("info.topicProgressExpanded")) {
|
if (this.get("info.topicProgressExpanded")) {
|
||||||
$(".timeline-fullscreen").removeClass("show");
|
$(".timeline-fullscreen").removeClass("show");
|
||||||
discourseLater(() => {
|
discourseLater(() => {
|
||||||
|
@ -180,7 +180,7 @@ export default class TopicNavigation extends Component {
|
||||||
duration: durationMs,
|
duration: durationMs,
|
||||||
fill: "forwards",
|
fill: "forwards",
|
||||||
})
|
})
|
||||||
.finished.then(() => this._collapseFullscreen(0));
|
.finished.then(() => this._collapseFullscreen(null, 0));
|
||||||
} else {
|
} else {
|
||||||
const distancePx = this.pxClosed;
|
const distancePx = this.pxClosed;
|
||||||
durationMs = this._swipeEvents.getMaxAnimationTimeMs(
|
durationMs = this._swipeEvents.getMaxAnimationTimeMs(
|
||||||
|
|
Loading…
Reference in New Issue