Open wh5a opened 14 years ago
It should do that already, but it's buggy on some pages. The test is
if (window.innerWidth + window.scrollX - 15 < document.width)
15 is the difference I got between window.innerWidth + window.scrollX and document.width when I tried opening a bunch of pages and scrolling all the way to the right (I also took a screenshot and measured the scrollbar; same thing). It should not be hard coded (it's probably wrong on other platforms) but I don't know how to properly get the real value.
I think if I removed the scrollbar kludge (the 15 pixels) it would probably work better. I'm going to try running with that for a while. It will prevent you from scrolling completely to the right.
Emacs' Ctrl-F keybinding is disabled by default, which is good. Unless there really is a horizontal scroll bar. The problem is that we lose the find text functionality. Can we stop overriding Ctrl-F when we scroll to the right end?