universalviewer icon indicating copy to clipboard operation
universalviewer copied to clipboard

Fading of OSD controls is not handled by Reduced Animation setting

Open LlGC-jop opened this issue 1 year ago • 1 comments

UV version: [email protected]

I'm submitting a:

  • [x] bug report => please fork one of these codesandbox examples with a repro of your issue and include a link to it below
  • [ ] feature request => please use the user stories repo
  • [ ] support request => Please do not submit support requests here, use stackoverflow

Current behavior:

When the reduce animations settings is checked the controls inside the OpenSeaDragon viewer still fade out when mouse is removed from the centre panel or focus is lost on one of the controls.

Expected behavior:

Controls should instantly be hidden rather than fading.

Steps to reproduce:

  1. Go to the dev site
  2. Open the settings dialogue
  3. Check the reduced animations option and close the dialogue
  4. Hover mouse over the centre panel and then remove it. The controls will pop in and then fade out.

LlGC-jop avatar Oct 23 '24 10:10 LlGC-jop

Fixing this should hopefully just be a case of overriding the controlsFadeLength setting in OSD's config in OpenSeadragonCenterPanel.ts, although whether this can be changed at runtime without having to reload OSD or the viewer I'm not sure.

LlGC-jop avatar Oct 23 '24 14:10 LlGC-jop