1
0
mirror of https://github.com/flarum/core.git synced 2025-06-07 23:29:13 +02:00
Alexander Skvortsov 641330ce52 Don't scroll on m.route.set() to different post on same page.
This removes some messy logic, and the potential for glitches. This system worked well with Mithril 0.2 where we could listen in before (and prevent) page unload, but since that's not possible in Mithril 2, the implementation of the replacement was done in `onbeforeupdate`, which might be called while the page route is being updated, glitching out the page. Instead, extensions should check if they are already on the discussion page for the post they are linking to, and if so, use `app.current.get('stream').goToNumber(TARGET)`.

Please note that this does NOT affect going directly to posts from external links (or page reload), OR from other pages via m.route.set.
2020-10-08 11:34:56 -04:00
..
2018-06-20 13:20:31 +09:30
2018-06-20 13:20:31 +09:30
2020-09-23 22:40:37 -04:00
2020-09-23 22:40:37 -04:00
2020-09-23 22:40:37 -04:00