texstudio
texstudio copied to clipboard
Holding down left/right arrow keys does not work as expected in previewer
Environment
- TeXstudio: 4.3.1
- Qt: 5.15.8
- OS: Linux Debian Bookworm
- TeX distribution: texlive
Expected behavior
In the preview window, when I hold down the left/right arrow keys, I expect to continue scrolling through pages until I let go of the key.
Actual behavior
When I hold down the left/right arrow, it moves one page and then stops. To move N pages, I have to press the key N times. This occurs for both the windowed previewer and the embedded previewer.
use page up/down keys
you may learn more about the behavior of the arrow and page keys when you switch to continuous mode (Menu View/Continuous)
@octaeder: the page up/page down keys behave differently from the arrow keys. It is true that the "page down" key has the correct repeating behaviour when I hold it down. However, when I am in continuous mode, the page down key scrolls down by one "screenful", this is much less useful than the right arrow which scrolls down exactly one page of the document. I am working on a set of slides so I usually want to "snap" to the top of a slide every time I scroll.
I also tried switching off continuous mode. If I display only 1x1 pages, then everything is ok, and the page up / page down solution is reasonable. If I display 1x2 pages, then the page up / page down behaviour is a bit odd: the first page down scrolls within the existing 2 pages shown, then the next one moves to the next slide. In order to get the desired behaviour I have to change the zoom to make sure the 2 pages fit entirely on the screen, but then everything is too small.
When I am connected to an external monitor, then I prefer the 2x1 layout, and there the page up / page down does exactly what I want.
Anyway, I guess it is not a big deal, but it's just a bit frustrating that the left/right arrow keys do exactly what I want in all cases, except that they don't repeat properly. I have never seen this behaviour in another program, and I don't understand why it would be different in texstudio. Is it a deliberate design decision for the arrow keys not to function in the usual way?
OK, I see the problem. I just discovered now that if I zoom in (so that the width of the page is larger than the window), then the right arrow actually really does "scroll" the page around within the view, until I hit the edge of the page, at which point it stops. Then if I hit the right arrow again, it jumps to the next page. So now at least I understand why the arrow key behaves the way that I am seeing. I guess this is reasonable behaviour.
Unfortunately, this seems to mean there does not exist a command in texstudio to do what I want. I would really like to be able to scroll around "one page at a time". I guess my only option is to use the 1x1 non-continuous view.
I would like to mention that the default "Document Viewer" in Debian (evince 43.1) does have the behaviour I want. When I am in continuous vertical view, the left/right arrows either (a) behave like texstudio if the current zoom has the document wider than the window, or (b) snap one page at a time if the document's width is less than or equal to the width of the window. I use this all the time in evince, and it would be great if texstudio could be made to work this way as well!