[feature]: Unlimit img zoom in or zoom out
Is there an existing issue for this?
- [x] I have searched the existing issues
Summary
Sometime, we upload imgs , when we check the detail or something small, the img scale max is 200%, it's not enough to check it .
So is it unlimit the scale , could zoom in, zoom out by scroll wheel?
Why should this be worked on?
it's unlimit the scale , could zoom in, zoom out by scroll wheel
A summary of the changes CodeRabbit can apply:
Implement an enhanced image viewer by updating packages/editor/src/core/extensions/custom-image/components/toolbar/full-screen/modal.tsx to remove the old zoom cap (expand range from 10%โ1000%), enable mouse-wheel zooming without modifiers, add finer predefined zoom steps and smoother exponential zooming, enforce bounds and auto-reset at 100%, and preserve drag-to-pan plus keyboard/button controls for a more precise, intuitive zoom experience.
Update packages/editor/src/core/extensions/custom-image/components/toolbar/full-screen/modal.tsx to expand and refine zoom behavior by increasing zoom range (MIN_ZOOM 0.5โ0.1, MAX_ZOOM 2โ10), adding fine-grained ZOOM_STEPS, reducing ZOOM_SPEED (0.05โ0.001), and making wheel/pinch zoom always apply (removing the ctrl/meta key check) while keeping position reset when magnification returns to 1.
- [ ] โ Create PR with these edits
- [ ] ๐ Get copyable edits