Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Jumpy Minimap scrolling #2080
When I grab the minimap "drag bar" outside some sweet spot near its vmiddle, the editing window seems to snap to some position near the vmiddle of the drag bar as soon as I start to drag it.
When I release dragging, the editor window snaps (moves) some number of lines up or down from the position where I released dragging.
Steps to Reproduce
I often find myself lost after I release the drag.
End-result is a jumpy scroll in the main editing window. I think I know where I want to work, but it snaps away when I release.
Komodo IDE, version 10.1.1, build 89474, platform win32-x86.
Apologies in advance for the looping GIF.
At the beginning, I grab the drag bar near its top and very slowly drag down. You can see the viewport jump to the top of the file as the pointer moves down. It reverses course when the pointer gets near the middle.
Then, near the end, I release and the viewport jumps a few lines. OK, the gif shows it jump one line. The release jump seems worse on longer files (or it might be my imagination).
referenced this issue
Oct 13, 2016
The fix I committed reduces the jumpiness and disorientation, but it's not perfect. There will be a larger jump the further away you click from the center.
The underlying issue appears to be by design in order to ensure that when you click+drag to scroll to the top of the minimap, you are at the beginning of the document, and when you click+drag to scroll to the bottom of the minimap, you are at the end of the document. If I were to try to keep track of the click+drag offset like a normal scrollbar, in certain circumstances by the time you reached either end of the minimap, you wouldn't be at document/start end.