RocketChat / RocketChat/Rocket.Chat
Bug: Image Preview Does Not Zoom Using Scroll or Trackpad
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 46.1k
- Forks
- 13.9k
- Avg merge
- 3d 3h
- Merged PRs (30d)
- 130
Description
Description
When an image is opened in preview mode, zooming using the mouse scroll wheel or trackpad gesture does not work.
However, the zoom works correctly when using the built-in Zoom In and Zoom Out buttons in the image preview toolbar.
Steps to Reproduce
Open Rocket.Chat.
Navigate to a channel or direct message containing an image.
Click on the image to open it in preview mode.
Try zooming using:
Mouse scroll wheel
Trackpad scroll gesture
Observe that the image does not zoom.
Now use the Zoom In / Zoom Out buttons.
Notice that zoom works correctly through the buttons.
Expected Behavior
The image should zoom in and out when using:
Mouse scroll wheel
Trackpad gesture
Scroll-based zoom should behave similarly to the zoom buttons.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the image preview entry point and the existing Zoom In/Zoom Out toolbar controls. Compare their behavior with mouse-wheel and trackpad event handling, then verify that both input methods zoom consistently and add regression coverage for scroll-based zoom.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100