opentower / populus-viewer

A Social Annotation Tool Powered by Matrix
https://opentower.github.io/populus-viewer
GNU Affero General Public License v3.0
120 stars 7 forks source link

Rework history mechanism #35

Closed gleachkr closed 3 years ago

gleachkr commented 3 years ago

Since historical state has to be centralized at the root, in order to have a single handler for history events, it'd be cleaner to have a single method that updates history, rather than setPdf and setPage. This would also be the right way to handle navigating to a certain annotation in a pdf.

gleachkr commented 3 years ago

Done!