jurplel / qView

Practical and minimal image viewer
https://interversehq.com/qview/
GNU General Public License v3.0
2.06k stars 122 forks source link

Customize mouse button actions #620

Open jurplel opened 1 year ago

jurplel commented 1 year ago

Combines #619 and #294

be9em0t commented 1 year ago

Please add option to go to Next/Previous image using mouse scroll

jdpurcell commented 1 year ago

If I were implementing this feature (spoiler alert: I already did 😄), this is how the UI would look:

Screenshot 2023-10-07 at 7 07 25 PM

So I'd be curious to know if @jurplel envisioned it working similarly, or had something quite different in mind.

jurplel commented 1 year ago

It would be nice if I could come up with a simpler/prettier/more compact design for the settings menu, but it certainly does the job

jdpurcell commented 1 year ago

@jurplel I had an attempt at it, this is what I came up with:

Screenshot 2023-10-15 at 1 04 52 PM

Specifically, it's a very clever optical illusion that involves the user having to scroll before revealing the full extent of the clutter 😆. And considering the typical aspect ratio of monitors, I think it makes sense to take a bit more advantage of horizontal space by having the categories on the side.

jurplel commented 1 year ago

Haha, not bad. I like the sidebar, looks very KDE.

BloodRaven0 commented 1 year ago

This looks awesome! Any plans to include settings for MB4 and MB5 (back / forward) that most mice have nowadays? Love that it has horizontal scroll ❤️

jdpurcell commented 1 year ago

@BloodRaven0 I wasn't planning on it, but those buttons fire the same types of mouse events as the normal buttons, so it's certainly doable if someone wanted to. It's just a question of complexity/clutter - it could be as simple as a custom click action for each of those buttons, or something more like what I did for the middle button, with a toggle for click or drag mode and an additional action with the control key modifier.

BloodRaven0 commented 1 year ago

@jdpurcell I was imagining a simple bind function for them, but any implementation would be welcome. Regarding clutter, a lot more mice have those two buttons than ones who have a tilt-able wheel (horizontal scroll).

Besides I don't think it will be cluttered, your tabbed settings interface looks clean and organized, I can't wait for that update ❤️

singhpaul commented 11 months ago

Would really love the ability to have scroll wheel navigate through the images in the folder! +1!

neur1n commented 6 days ago

Will this be merged soon? I really want to disable the panning though. :)