Skip to content

OpenSeadragon +/- zoom buttons do not respect zoom limits #1299

Description

@demiankatz

UV version:

 universalviewer@4.1.0

I'm submitting a:

  • 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:
If you use the + and - zoom buttons in OpenSeadragon to adjust the zoom of an image, they are not constrained -- you can zoom in forever, beyond any configured limits. If you drag the image with the mouse, it will snap back to the configured zoom limit. It seems that something is bypassing the constraints (perhaps related to our reprogramming of the buttons during the accessibility sprint).

Expected behavior:
You should not be able to exceed zoom limits with the buttons; zooming should stop when a limit is reached, and further clicking should have no effect.

Steps to reproduce:

Keep clicking the - button: eventually, the image will reduce to a single pixel and disappear.

Keep clicking the + button: eventually, the image will zoom in so far that a single color fills the screen.

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

Status
Completed

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions