macdown
macdown copied to clipboard
Minor issue: manual refresh (with ⌘+R) doesn't remember the preview scroll position with mouse scroll wheel
This is a problem only with mouse scroll wheels. Trackpads aren't affected and there is an inconvenient workaround for mice too.
I use the latest version of MacDown (0.7.3) with the following features turned off for better performance:
- Update preview automatically as you type
- Sync preview scrollbar when editor scrolls
I refresh the preview manually with ⌘+R. Normally this feature remembers the vertical scroll position of the preview pane and scrolls back there after the refresh. This behavior is essential in case of documents that are longer than a couple pages. It works perfectly with trackpads but with a mouse it doesn't work when the preview pane is scrolled with the scroll wheel (which is the easiest and most natural method).
With a mouse the "last remembered position" (to be used after refresh) is saved only when the preview is scrolled by grabbing the scrollbar directly. This workaround is quite inconvenient (since the scroll bar is small and isn't even visible by default) so I switched back to trackpad after figuring out the reasons.