ahrm / sioyek

Sioyek is a PDF viewer with a focus on textbooks and research papers
https://sioyek.info/
GNU General Public License v3.0
7.15k stars 236 forks source link

[Feature request] Implement a mouse grab feature #1121

Open flabou opened 4 months ago

flabou commented 4 months ago

I am still using Sioyek daily and still love it. For publication papers, this is not relevant, but there are cases when I open files that are much larger than A4 size and do not fit zoomed out on the screen.

For this purpose I think the ability to grab and move the document with the mouse is a convenient way to move around. My personal favorite implementation is as in GIMP, to have the grabbing tied to a key (e.g. spacebar, but of course this is a user config) so that when the key is pressed, the point underneath the mouse stays under the mouse while it moves.

As a bonus, I also like the implementation of KiCad that wraps the mouse pointer to the other side when a side of the screen is reached so you do not have to lift the mouse as often if you still have room on your desk (or like in Pac-Man, maybe we should call this Pac-Man wrap).

ahrm commented 4 months ago

It is not exactly what you have described but we have added ability to move the window using middle mouse button in the development branch.

flabou commented 3 months ago

Thank you! I will try it out when it is released.