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

Zooming in and out with the mouse wheel #2962

Closed michelgravel closed 8 months ago

michelgravel commented 8 months ago

I suggest adding a functionality to zoom in and out of the spectrum in a gradual fashion rather than by selecting a zone. Some commercial software have this functionality and it is very useful when we want to increase or decrease the zoom window. Less annoying than double clicking to a previous zoom window. For example, one could hold the right mouse button and scroll the mouse wheel at the same time.

lpatiny commented 8 months ago

Thanks for this idea, I really like it. I'm very frustrated to have to zoom out to zoom in again like it currently works and this solves this issue.

I would rather make shift + scroll wheel for horizontal zoom in / out.

lpatiny commented 8 months ago

@michelgravel you can test the new features here: https://github.com/cheminfo/nmrium

We did shift + scroll wheel.

michelgravel commented 8 months ago

Fantastique!

Merci,

Michel

Michel Gravel Dept of Chemistry University of Saskatchewan 110 Science Place Saskatoon, SK S7N 5C9 306-966-7785 https://research-groups.usask.ca/gravel/index.php

From: Luc Patiny @.> Sent: Friday, March 15, 2024 6:56 AM To: cheminfo/nmrium @.> Cc: Gravel, Michel @.>; Mention @.> Subject: Re: [cheminfo/nmrium] Zooming in and out with the mouse wheel (Issue #2962)

CAUTION: External to USask. Verify sender and use caution with links and attachments. Forward suspicious emails to @.**@.>

@michelgravelhttps://github.com/michelgravel you can test the new features here: https://github.com/cheminfo/nmrium

We did shift + scroll wheel.

- Reply to this email directly, view it on GitHubhttps://github.com/cheminfo/nmrium/issues/2962#issuecomment-1999608566, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A3IDIN5X4F34KEVHOYKNTBTYYLVWRAVCNFSM6AAAAABESVWESCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOJZGYYDQNJWGY. You are receiving this because you were mentioned.Message ID: @.**@.>>