1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-20 04:27:59 +01:00

Fix scrolling bug.

This commit is contained in:
Kris Maglione
2010-12-03 19:40:09 -05:00
parent ad54306603
commit d15599ee3a

View File

@@ -1153,7 +1153,9 @@ const Buffer = Module("buffer", {
let sel = buffer.focusedFrame.getSelection();
if (!elem && sel && sel.rangeCount)
elem = find(sel.getRangeAt(0).startContainer);
elem = sel.getRangeAt(0).startContainer;
if (elem)
elem = find(elem);
if (!(elem instanceof Element)) {
let doc = Buffer.findScrollableWindow().document;