mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-10-18 00:22:30 +02:00
change the bounds checking in scrollAbsolute() to allow for the fact scrollY
can be larger than scrollMaxY
This commit is contained in:
1 parent
d8a68f1156
commit
990bbe4b41
1 file changed
+3
-2
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user