Comments (7)
Thanks for reporting this, it was definitely not my intention to have it scroll horizontally.
from scxcodeminimap.
That was fast Stefan, thanks. But I think that's not the right solution. Atm the scrolling is so weird, it's practically unusuable when using the minimap for scrolling (even though the horizontal scrolling is fixed).
- Scrolling with a wheel mouse scrolls the minimap horizontally.
- Clicking in the minimap now only scrolls one page it seems, not to the position where I clicked on. It's a bit hard to say, because that constant scrolling of the minimap is so irritating.
- Dragging with the mouse (clicking somewhere in the minimap + holding the left mouse button, then move the mouse) moves the selection in a weird way. It looks as if it works delayed, especially when I change the direction (from up to down or vice versa) it still scrolls a while in the old direction. Very weird.
I believe fixing the minimap scrolling and then centering the selection area around the position where clicked (or dragged) would solve all these issues. Otherwise that plugin is a very nice addition and I'm thankful you created it.
from scxcodeminimap.
Okay, I think I have a hardware problem, let me get a proper mouse and get back to you on this :)
from scxcodeminimap.
Okay, so I changed a couple of things and I think you'll find it allot better now. What I did was:
- Disable horizontal scrolling from the minimap
- Link the horizontal scrolling of the main editor to the minimap
- Switched the way I center the selection view when the user clicks on the minimap
Can you please give it another go and let me know what you think ?
from scxcodeminimap.
1 and 2 are fine now. However point 3 is still a problem. When I click on the minimap the gray rect only moves a little (in a reasonable large file) instead of moving to the actual mouse position. Not even the part that was under the mouse when I clicked is scrolled into view (it only moves partially down, but is still not covered by the preview area). Dragging with the mouse still works only erratic. There seems to be no logic behind it. I can easily make the editor scrolling down while dragging the mouse up. Seems to be a function of the distance between mouse and the preview rect, and on which side (above or below the preview rect) is the mouse. Very weird.
from scxcodeminimap.
It seems that the problem is related to non-contiguous layouts and the layout manager not knowing the exact frames for all the glyphs. As far as I can tell this is a problem only on large source files and the only way to get it working properly is going through the whole file once, allowing both layout managers to calculate the full layouts.
Unfortunately I'm not really sure how to fix the problem so any ideas are more than welcome.
from scxcodeminimap.
Closing in favor of #52
from scxcodeminimap.
Related Issues (20)
- Xcode 7 beta 4 crashes when viewing the stdio.h file HOT 3
- Causes scroll position to jump unexpectedly HOT 2
- Crashes Xcode 7 when using autocomplete HOT 18
- Xcode crashed when tap BackSpace twice HOT 1
- xcode
- xcode7 crash HOT 1
- Xcode 7 Crash When Minimap is Visible HOT 5
- MiniMap on wrong side in Comparison View HOT 1
- MiniMap obscuring right hand side of code in Xcode word-wrap mode HOT 5
- Feature request: highlight source control changes HOT 1
- SCXodeMiniMap makes Xcode slower HOT 3
- Not working anymore with Xcode 7.3
- MiniMap have a scrollview at right size HOT 1
- Error/warning messages obscured by MiniMap
- Git diff in the minimap
- Xcode 8 extension support HOT 3
- xcode 8 later crash HOT 1
- Typing caused by Caton HOT 1
- Not working with Xcode 9 HOT 2
- Please Help fix SCXcodeMinimap on Xcode10 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scxcodeminimap.