sublime-scroll
sublime-scroll copied to clipboard
Problem when minimap is higher than window height.
Hi,
thanks for a great script! I noticed that when the minified/scroll version is longer than the height of the window, clicking on the minified version does not direct you to the right location in the main window.
You can replicate this behavior by opening http://django.is/ in a window with small height. If you click on the bottom part of the minified version, it should direct you to somewhere in the middle of the main page, while it actually directs you to the bottom of the page.
Any ideas on how to fix this?
Thanks,
Erik
I think it has something to do with the loading of the google fonts. I've been meaning to fix this for some time.
I tested the loading of Google fonts and it does not seem to be the problem. I have checked out your github repo and put a h2 somewhere in the middle of example.html. Now, if I scroll down, and have h2 at the bottom of the minified version/scroll window and click it, i am directed to the bottom of the main page (whilst I'd like to be directed to h2 in the main window). This happens even though example.html does not have Google fonts embedded.
I understand now what you mean. Sublime Text has a more sophisticated approach to this. I have simply not implemented this behaviour yet. So for now, this is the expected behaviour, but should probably be changed.