mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 06:07:59 +01:00
Fix scrolling bug.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user