mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-04 00:04:12 +01:00
Fix minefield.
This commit is contained in:
@@ -540,7 +540,7 @@ var Buffer = Module("Buffer", {
|
||||
let { dactyl } = this.modules;
|
||||
|
||||
let doc = elem.ownerDocument;
|
||||
let win = doc.defaultView;
|
||||
win = doc.defaultView;
|
||||
let { left: offsetX, top: offsetY } = elem.getBoundingClientRect();
|
||||
|
||||
if (isinstance(elem, [Ci.nsIDOMHTMLFrameElement,
|
||||
@@ -560,8 +560,6 @@ var Buffer = Module("Buffer", {
|
||||
return;
|
||||
}
|
||||
|
||||
let { dactyl } = this.modules;
|
||||
|
||||
let ctrlKey = false, shiftKey = false;
|
||||
let button = 0;
|
||||
switch (dactyl.forceTarget || where) {
|
||||
@@ -941,7 +939,7 @@ var Buffer = Module("Buffer", {
|
||||
if (win && (win.scrollMaxX > 0 || win.scrollMaxY > 0))
|
||||
return win;
|
||||
|
||||
let win = this.focusedFrame;
|
||||
win = this.focusedFrame;
|
||||
if (win && (win.scrollMaxX > 0 || win.scrollMaxY > 0))
|
||||
return win;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user