mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-10-17 01:02:31 +02:00
Try to find a text node in the middle of the viewport first when there's no selection.
This commit is contained in:
1 parent
d3b647df42
commit
3600f41f1f
1 file changed
+1
-1
@@ -516,7 +516,7 @@ var Buffer = Module("Buffer", {
|
||||
rect = { x: rect.left, y: 0, width: rect.width, height: win.innerHeight };
|
||||
}
|
||||
else {
|
||||
rect = { x: 0, y: 0, width: win.innerWidth, height: 0 };
|
||||
rect = { x: win.innerWidth / 2, y: 0, width: 0, height: 0 };
|
||||
}
|
||||
|
||||
var reduce = function (a, b) DOM(a).rect.top < DOM(b).rect.top ? a : b;
|
||||
|
||||
Reference in new issue
Block a user