mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 15:57:57 +01:00
Make [[ and ]] work better.
This commit is contained in:
@@ -302,7 +302,7 @@ var HintSession = Class("HintSession", CommandMode, {
|
||||
rect.left > offsets.right || rect.right < offsets.left)
|
||||
return false;
|
||||
|
||||
if (!rect.width || !rect.height)
|
||||
if (!rect.width && !rect.height)
|
||||
if (!Array.some(elem.childNodes, elem => elem instanceof Element
|
||||
&& DOM(elem).style.float != "none"
|
||||
&& isVisible(elem)))
|
||||
@@ -1125,7 +1125,7 @@ var Hints = Module("hints", {
|
||||
}, {
|
||||
isVisible: function isVisible(elem, offScreen) {
|
||||
let rect = elem.getBoundingClientRect();
|
||||
if (!rect.width || !rect.height)
|
||||
if (!rect.width && !rect.height)
|
||||
if (!Array.some(elem.childNodes, elem => elem instanceof Element
|
||||
&& DOM(elem).style.float != "none"
|
||||
&& isVisible(elem)))
|
||||
|
||||
Reference in New Issue
Block a user