From b8080538466a7e42dc6d759193653dcadb26b085 Mon Sep 17 00:00:00 2001 From: Jonathan Phillips <125897079+LlGC-jop@users.noreply.github.com> Date: Wed, 30 Oct 2024 19:10:28 +0000 Subject: [PATCH] Improve screen reader representation of OSD buttons (fixes #1170) (#1174) --- .../OpenSeadragonCenterPanel.ts | 65 ++++++++++++++----- 1 file changed, 47 insertions(+), 18 deletions(-) diff --git a/src/content-handlers/iiif/modules/uv-openseadragoncenterpanel-module/OpenSeadragonCenterPanel.ts b/src/content-handlers/iiif/modules/uv-openseadragoncenterpanel-module/OpenSeadragonCenterPanel.ts index 4241fd8dd..fb41d7f37 100644 --- a/src/content-handlers/iiif/modules/uv-openseadragoncenterpanel-module/OpenSeadragonCenterPanel.ts +++ b/src/content-handlers/iiif/modules/uv-openseadragoncenterpanel-module/OpenSeadragonCenterPanel.ts @@ -361,40 +361,52 @@ export class OpenSeadragonCenterPanel extends CenterPanel< ], }); - this.$zoomInButton = this.$viewer.find('div[title="Zoom in"]'); + let $oldZoomIn = this.$viewer.find('div[title="Zoom in"]'); + this.$zoomInButton = $("