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:
@@ -136,7 +136,8 @@ function Buffer() //{{{
|
|||||||
// beep if we can't go there
|
// beep if we can't go there
|
||||||
if (down > 0)
|
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();
|
vimperator.beep();
|
||||||
}
|
}
|
||||||
else if (down < 0)
|
else if (down < 0)
|
||||||
@@ -147,7 +148,7 @@ function Buffer() //{{{
|
|||||||
|
|
||||||
if (right > 0)
|
if (right > 0)
|
||||||
{
|
{
|
||||||
if (win.scrollX == win.scrollMaxX)
|
if (win.scrollX >= win.scrollMaxX)
|
||||||
vimperator.beep();
|
vimperator.beep();
|
||||||
}
|
}
|
||||||
else if (right < 0)
|
else if (right < 0)
|
||||||
|
|||||||
Reference in New Issue
Block a user