-
Notifications
You must be signed in to change notification settings - Fork 130
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Overlayed minimaps #724
Comments
Can you provide versions for Atom and OS, and minimap settings? I am unable to reproduce this. |
Does it still appear after restarting Atom? It could be a case where the old one is not removed on deactivate. |
Already tried that (first thing that I tried), keep happening. Also tried reinstalling the package |
I have also tried restarting atom, and tried toggling all of the options in settings. I also disabled the minimap-selection plugin, but none of this helped. I'm running Atom version 1.53.0 x64 on Ubuntu 20.10 (Groovy Gorilla) x64 |
Could you give the list minimap plugins and screenshots of your minimap settings? |
I have the same problem with Minimap 4.35.2 after a fresh installation of Atom from the Ubuntu software centre, without adding the Atom official repositories. Restarting Atom and logging out from Ubuntu didn't solve this issue. Could you please fix it? Below you can find the OS and atom versions: Minimap 4.35.2 Thank you! |
We can't fix the issue without being able to reproduce it. Could you give more information? |
Yes, of course. Please see the attached file (I added the txt extension to upload it). |
@TizianoGC is this the situation that it happens? The config shows that you have disabled minimap! Please reproduce the error, and then close Atom, and finally upload the file. |
Sorry about that. Yes, the error is still present, here there is the config file with minimap enabled: I just noticed a new version of Minimap (4.35.3), shall I try it now and check if the error is still occurring? |
Thanks!
Yes, please! |
Unfortunately it is still happening. |
@TizianoGC Are you familiar with dev tools? If so, execute the following command (CTRL+Shift+P and search for the command)
Then try to inspect the overlayed minimaps, then give a screenshot of the HTML (atom-text-editor-minimap). You see the minimap element here: You can for example delete it, and access the underlying minimap. |
I can reproduce with
If I put |
@TizianoGC I can see here that you only have one minimap element! Why does it show two then? Could you open a single file that reproduces the issue and send the screenshot of HTML? |
Could you try installing the previous versions one by one until the issue gets fixed? I want to know which version is causing this issue. I know this is a lot, but you probably want to try a few of them until you find the one that is causing the issue. After installation of each, you need to restart Atom (CTRL+Shift+F5).
https://github.com/atom-minimap/minimap/releases |
|
Minimap works fine from 4.29.9 until 4.32.0, then from version 4.33.0 doesn't work correctly any more. |
I can confirm I have the same issue as @TizianoGC and @EricMaGo. I'm running the same Ubuntu 20.04 LTS / Atom 1.53.0 x64 / Minimap v4.35.4 set-up. If I set /**
* The onscreen canvas context.
* @type {CanvasRenderingContext2D}
*/
- this.context = this.canvas.getContext('2d', { desynchronized: true })
+ this.context = this.canvas.getContext('2d', { desynchronized: false }) But I don't know why this only seems to affect certain platforms/installations. |
This seems to be specific to Ubuntu. Desynchronized canvas are more performant than traditional canvas. I think we should fall back to the traditional canvas for the operating systems that do not support low-latency rendering. You should switch to other operating systems if you want to experience the better performance of minimap. https://developers.google.com/web/updates/2019/05/desynchronized#feature_detection Based on this image, it seems Ubuntu does not support it. |
I have disabled desynchronized for Linux. If you have Linux, please try the latest version once it is released. If you are interested in contributing, please see if setting lowLatency to true also causes the same problem |
🎉 This issue has been resolved in version 4.35.5 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Setting |
Chromium does not currently recognize "lowLatency" as a key: https://source.chromium.org/chromium/chromium/src/+/master:out/win-Debug/gen/third_party/blink/renderer/bindings/modules/v8/v8_canvas_context_creation_attributes_module.cc;drc=d81c5852498699fe3cd812e78d31c77c28e29281;bpv=1;bpt=1;l=22?q=preserveDrawingBuffer&ss=chromium You can check if an attribute is recognized by checking for its presence as a key in the object returned from getContextAttributes(). |
You should feel the difference when you set redrawDelay to 0. When you type in a large file, minimap updates should not slow down your typing. Originally, I wanted to decrease redrawDelay, but I avoided that as I did not know if low latency canvas are supported on all operating systems. Minimap updates are not anything critical IMO, and so I prefer it not to be hard real time. The text editor itself is much more important, and that's where it should feel fast and smooth. |
Many thanks for the support and for fixing this issue :) |
With the last update two maps appear one on top of the other, but only one moves when scrolling
The text was updated successfully, but these errors were encountered: