Closed doersino closed 5 years ago
Also change the URL hash to the last slide if it's higher than that (which can happen when deleting slides and then refreshing while at the very bottom of the page in draft mode).
I couldn't make this work at an acceptable level of added complexity, see the commit above this comment.
Right now, whichever slide is completely visible and closest to the viewport's top edge is noted in the URL hash and thus aligned to the viewport's top edge on refresh.
This keeps things simple and somewhat transparent to the user, but perhaps it would make sense to maintain a more accurate position (or offset from the top of the slide specified in the URL hash) in local storage or something?
In presentation mode, this more accurate position should of course be ignored.