plane icon indicating copy to clipboard operation
plane copied to clipboard

[feature]: Unlimit img zoom in or zoom out

Open elmagnificogi opened this issue 1 month ago โ€ข 1 comments

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 . Image

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

elmagnificogi avatar Nov 05 '25 07:11 elmagnificogi

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

coderabbitai[bot] avatar Nov 05 '25 07:11 coderabbitai[bot]