Timeline bug on mobile: A user, sok777, reported a bug on mobile where the floating timeline doesn’t fully disappear after selecting a post, requiring an additional click to reappear correctly. They suspected an event propagation issue. Moin found a similar issue reported 4 months ago (link). sok777 confirmed it’s a propagation issue and identified a simple fix, where clicking anywhere after the ‘show’ class is removed triggers the JavaScript to bring back the timeline.
I’ve noticed on Meta and other Discourse instances that when using the timeline on mobile (specifically the floating timeline), after selecting a post to navigate to, the full-screen view (.timeline-fullscreen) removes the ‘show’ class as expected, however, the timeline still slightly visible at the bottom of the screen.
You must click it again for the floating timeline to fully reappear correctly.
This behavior feels like it might be related to an event propagation issue or something similar. Has anyone else experienced this or is there a known workaround?
Definitely a propagation issue. I tested it as follows:
clicking anywhere after the class ‘show’ is being removed triggers the js that brings back the timeline and removes the .timeline-fullscreen div. So should be a simple fix tbh.