Closed ascherer closed 1 year ago
Hello Andreas, good idea.Up to now none of my viewers supports a scroll wheel, but I have observed myself several times using the scrollwheel - expecting I dont know what, probably getting to a previous or next position in the document. I have always hesitated implementing normal scrolling, because I wanted to maintain the menatal model of paging through a book. So your solution is just that.
See https://www.glfw.org/docs/3.3/input_guide.html#scrolling for details. This should work with a mouse scrollwheel (tested successfully on Kubuntu 22.04.2 LTS) and with touchpad gestures (untested).