mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 22:02:26 +01:00
fix broken local/URL mark jumping regression
This commit is contained in:
@@ -1705,7 +1705,7 @@ liberator.Marks = function () //{{{
|
|||||||
win.location.href = slice.location;
|
win.location.href = slice.location;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
liberator.log("Jumping to URL mark: " + markToString(mark, slice), 5);
|
liberator.log("Jumping to URL mark: " + markToString(mark, slice[i]), 5);
|
||||||
win.scrollTo(slice.position.x * win.scrollMaxX, slice.position.y * win.scrollMaxY);
|
win.scrollTo(slice.position.x * win.scrollMaxX, slice.position.y * win.scrollMaxY);
|
||||||
ok = true;
|
ok = true;
|
||||||
}
|
}
|
||||||
@@ -1720,7 +1720,7 @@ liberator.Marks = function () //{{{
|
|||||||
{
|
{
|
||||||
if (win.location.href == slice[i].location)
|
if (win.location.href == slice[i].location)
|
||||||
{
|
{
|
||||||
liberator.log("Jumping to local mark: " + markToString(mark, slice), 5);
|
liberator.log("Jumping to local mark: " + markToString(mark, slice[i]), 5);
|
||||||
win.scrollTo(slice[i].position.x * win.scrollMaxX, slice[i].position.y * win.scrollMaxY);
|
win.scrollTo(slice[i].position.x * win.scrollMaxX, slice[i].position.y * win.scrollMaxY);
|
||||||
ok = true;
|
ok = true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user