cheminfo / nmrium

React component to display and process nuclear magnetic resonance (NMR) spectra.
https://docs.nmrium.org
MIT License
55 stars 25 forks source link

Non-intuitive icons and zoom function #2998

Open schatzsc opened 5 months ago

schatzsc commented 5 months ago

The icon used for zooming out is not very intuitive as most software uses the "magnifying glass" with a "+" inside to zoom in and a "-" to zoom out.

Furthermore, while you can zoom in multiple times by repeatedly clicking the "+" icon at the top, it currently is not possible to go back just one zoom level to the previous one, which would however be a highly desirable feature.

Furthermore, the "baseline icon" highlighted in blue at the bottom only allows you to switch between baseline at the bottom or in the middle of the spectrum window. It would be very useful if the spectrum could be freely moved along the vertical (intensity) axis by just dragging it up or down with the mouse.

nmrium_icons

hamed-musallam commented 5 months ago

@schatzsc

We've enhanced the tool's usability beyond what was available in the previous version. You can explore how to use the tool in the previous versions here: https://docs.nmrium.org/help/zoom-and-scale.

Starting from NMRium version 51, you can now zoom in/out using Shift + mouse wheel and pan using the right mouse button

You can test the new Zoom tool behavior at https://dev.nmrium.org/

lpatiny commented 5 months ago

In the next version you will be able to zoom in / out with SHIFT + scroll wheel. You can test it on https://dev.nmrium.org

2024-03-28 18 49 57

schatzsc commented 5 months ago

@lpatiny Nice!!!

Would you also consider changing the 2nd [] icon to "magnifying glass with minus sign"?!? I really found that super-confusing since all other software I know has + and - magnifying glass to zoom in and out.

Another feature that would be very comfortable but is missing at the moment is to just move the "field of view" horizontally to check different multiplets without changing zoom level.

hamed-musallam commented 5 months ago

Hello @schatzsc,

Another feature that would be very comfortable but is missing at the moment is to just move the "field of view" horizontally to check different multiplets without changing zoom level.

Starting from NMRium version 51, you can now zoom in/out using Shift + mouse wheel and pan to right or left using the right mouse button

https://github.com/cheminfo/nmrium/assets/35760236/91d3ed03-c3a7-406d-ad99-6a61939233e1

You can test the new Zoom tool behavior at https://dev.nmrium.org/