Skip to content

feat(ImageViewer): support change zoomSpeed #6144

@h2ls

Description

@h2ls

Is there an existing issue for this?

  • I have searched the existing issues

Is your feature request related to a problem? Please describe the problem.

Currently, the ImageViewer component's mouse wheel zoom functionality uses a fixed zoom step (0.1). This lacks flexibility for users who need faster/slower zoom responsiveness, especially when handling high-resolution images or specific UX requirements.

Describe the solution you'd like

Introduce a new parameter ZoomSpeed to dynamically adjust the zoom increment per mouse wheel step:

Add a double parameter ZoomSpeed with default value 0.
Modify the wheel event handler to apply ZoomSpeed instead of a hardcoded value.
Ensure backward compatibility (retain current behavior if ZoomSpeed is unset).

Additional context

No response

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions