tify-iiif-viewer / tify

TIFY is a slim and mobile-friendly IIIF document viewer.
GNU Affero General Public License v3.0
107 stars 27 forks source link

Does TIFY have an event for when the user changes pages? #182

Open germyparker opened 3 months ago

germyparker commented 3 months ago

If a user has loaded a multiple-page manifest, and then goes to the next page, I'd love to have my "host" page respond to the page change, like, change my page's title (&c). Is that possible?

(I realize I can have external-to-Tify "prev/next" buttons and use the setPage API to change what TIFY is displaying, but that means that my external-to-tify UI has to include elements you kind folks have already written, and it feels like keeping people within The Tify Experience™ would feel more natural.)

t11r commented 3 months ago

This is not possible yet, but this feature has been planned for some time. Your use case might lead to moving it up in our schedule.

If your website is already public, I’d appreciate if you’d add its URL.

nick3white commented 3 months ago

Thank you! No, the site isn't public yet, I'm still working out the details for how to handle keeping the user "on the same page" in text and image.. I'll make a post if I can it worked out!