appsmithorg / appsmith

Platform to build admin panels, internal tools, and dashboards. Integrates with 25+ databases and any API.
https://www.appsmith.com
Apache License 2.0
34.6k stars 3.73k forks source link

[Feature]: Image widget -Add a zoom control in the image when users can change the zoom level #15300

Open btsgh opened 2 years ago

btsgh commented 2 years ago

Is there an existing issue for this?

Description

When I set zoom level to say 2x or 4x (or anything) and also set an onClick Event to something - say copy to clipboard or show message, the mouse pointer does not change to zoom icon, and neither does zoom out function correctly.

Steps To Reproduce

  1. Drag and drop an image widget
  2. Set zoom level to say 2x or 4x (or any option)
  3. Set onClick Event to say copy to clipboard or show message Try to zoom in / zoom out.

Note that the mouse pointer does not change to zoom icon, and neither does zoom out function correctly.

Public Sample App

No response

Version

Production

dilippitchika commented 2 years ago

In this case, you can zoom using the scroll. In macboocks, cmd+scroll works in zooming this. Click takes higher priority than zoom, since it's a much more important action.

If we want to solve this we have to add a zoom selector which is a new feature. Deprioritising this to low and changing it to a feature.