stefanceriu / SCXcodeMiniMap

Sublime Text like Minimap for Xcode
GNU General Public License v3.0
1.03k stars 87 forks source link

Use trackpad, the map following the last focus #47

Closed Weever closed 9 years ago

Weever commented 9 years ago

In Xcode v6.2, MiniMap v2.0. first, my focus in the top of the page, in this time, i scroll the map to the bottom of the page, and use trackpad scroll page, the page scroll to top(first focus position) right now.

StevenMasini commented 9 years ago

Yes! The same bug occur with me too. If I use the trackpad instead of the minimap to scroll, the view will automatically scroll back to the position where the minimap is set. That's an very annoying bug :S

stefanceriu commented 9 years ago

Hey, I'm having troubles reproducing this. Can you guys give me a bit more to go on? What options are enabled on the Minimap, does it happen on all source files, Xcode version etc. ?

StevenMasini commented 9 years ago

Hey Stef, I just reinstall minimap on my Macbook Pro 13" and I get the bug directly. I don't know why, but I will try later with my Macbook 15" to see if there is a difference.

screen shot 2015-04-22 at 12 38 16 pm

I'm at your service if you need more details.

StevenMasini commented 9 years ago

Ok I figured out why this bug happens! If I select the option "Hide editor scroller" then the problem occur. But if I don't hide the editor scroller then everything is right.

Btw my XCode Version is 6.3 but it also happened before with XCode 6.2, and it happens with any kind of file I think.

stefanceriu commented 9 years ago

Perfect, we have ourselves a starting point :) I'll try to figure out what's wrong and fix it asap.

stefanceriu commented 9 years ago

Should be fixed now and although this might look like a really hacky approach it does work better than all the others I tried.