viewerjs icon indicating copy to clipboard operation
viewerjs copied to clipboard

Scroll to scroll the images, Ctrl + Scroll for zoom

Open lublak opened this issue 2 years ago • 4 comments

Describe the solution you'd like

It would be handy if you can scroll through the images. So you can use Ctrl + Scroll for zooming as known in the browser.

Describe alternatives you've considered

Realize this possibility through the methods.

lublak avatar Feb 05 '22 17:02 lublak

Why?

fengyuanchen avatar Feb 07 '22 12:02 fengyuanchen

@fengyuanchen The reason lies in the mouse users. For them it is easier to scroll to get through the gallery. The left Ctrl key can then be operated with the left hand or right for left-handers. The navigation with the arrow keys is rather unpleasant for right-handers because they are very far to the right in the keyboard. Mostly you use the right hand for this, which of course has to be taken from the mouse. Scrolling is also advantageous when you have to scroll quickly through many pictures.

lublak avatar Feb 07 '22 18:02 lublak

Do you know of other image gallery libraries that already implement these behaviors? If so, please give me some examples.

fengyuanchen avatar Feb 08 '22 02:02 fengyuanchen

I don't know alot of image viewer libraries in javascript. But i know this feature from windows image viewer: https://www.howtogeek.com/755899/how-to-scroll-through-photos-lightning-fast-on-windows-10/ @fengyuanchen

lublak avatar Feb 09 '22 00:02 lublak