mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 10:17:59 +01:00
Fix scrolling bug.
This commit is contained in:
@@ -1153,7 +1153,9 @@ const Buffer = Module("buffer", {
|
|||||||
|
|
||||||
let sel = buffer.focusedFrame.getSelection();
|
let sel = buffer.focusedFrame.getSelection();
|
||||||
if (!elem && sel && sel.rangeCount)
|
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)) {
|
if (!(elem instanceof Element)) {
|
||||||
let doc = Buffer.findScrollableWindow().document;
|
let doc = Buffer.findScrollableWindow().document;
|
||||||
|
|||||||
Reference in New Issue
Block a user