1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-21 22:07:59 +01:00

change the bounds checking in scrollAbsolute() to allow for the fact scrollY

can be larger than scrollMaxY
This commit is contained in:
Doug Kearns
2007-08-11 14:49:52 +00:00
parent d8a68f1156
commit 990bbe4b41

View File

@@ -136,7 +136,8 @@ function Buffer() //{{{
// beep if we can't go there
if (down > 0)
{
if (win.scrollY == win.scrollMaxY)
// NOTE: it's possible to have scrollY > scrollMaxY - FF bug?
if (win.scrollY >= win.scrollMaxY)
vimperator.beep();
}
else if (down < 0)
@@ -147,7 +148,7 @@ function Buffer() //{{{
if (right > 0)
{
if (win.scrollX == win.scrollMaxX)
if (win.scrollX >= win.scrollMaxX)
vimperator.beep();
}
else if (right < 0)