I display images in-line with begin_src & result blocks.
However, for large-images, when I scroll past the bottom of the image, I get a 'jerk' and the whole image is scrolled away. Similarly if I scroll up and run into an image, I get a jerk and see the whole image instead of seeing it incrementally bit by bit.
This makes it hard to work with large plantuml/graphviz diagrams in org-mode.
I would like a smooth scoll experience, to gently scroll past the image like in a web browser, without jerking.
I have tried:
(setq auto-window-vscroll nil)
and also
(setq scroll-margin 1
scroll-conservatively 0
scroll-up-aggressively 0.01
scroll-down-aggressively 0.01)
I tried smooth-scroll package and this snippet also.
However, it seems an in-line image only takes up 'one-line' and fixing emacs to scroll only by 'one-line' doesn't fix the issue.
Any solution to this issue?
[edit] Keyboard vs Mouse scrolling:
Mouse scrolling is implied. But keyboard scrolling would be a bonus if proper mouse scrolling would work.
[edit]
Somewhat of a workaround, but useful for working with images in org-mode was to open them in an external app that auto-reloads on file change.
Example would be eog (eye of gnome)
or shutter
or prievew (on OS X)
. It can be configured via org-file-apps
by adding:
extension: \.png\'
Command: eog "%s"