issues
search
dz
/
atom-nyancat
MIT License
12
stars
6
forks
source link
Fix for #15 and #13
#16
Open
Juravenator
opened
6 years ago
Juravenator
commented
6 years ago
These 2 commits fix #15 and #13. More specifically:
The progress calculation logic has been replaced with a scrollTop-based approach, to account for removed calls
This logic incidentally makes the progress 100% on small files that don't have a scrollbar
The nyancat-view is hidden when no file tabs are opened
The nyancat-view creates the DOM only once and updates it, rather than destroy and recreate on every scroll event
The nyancat-view takes all available remaining space in the left status bar
Replaced the event listener so it also detects scrolling events when the open tab isn't selected (preview tabs)
Adjusted the css slightly to fix some unwanted padding
These 2 commits fix #15 and #13. More specifically: