diff --git a/src/detection-strategy/object.js b/src/detection-strategy/object.js index ef1d3e0..04aae0f 100644 --- a/src/detection-strategy/object.js +++ b/src/detection-strategy/object.js @@ -69,7 +69,7 @@ module.exports = function(options) { var debug = options.debug; function injectObject(element, callback) { - var OBJECT_STYLE = buildCssTextString(["display: block", "position: absolute", "top: 0", "left: 0", "width: 100%", "height: 100%", "border: none", "padding: 0", "margin: 0", "opacity: 0", "z-index: -1000", "pointer-events: none"]); + var OBJECT_STYLE = buildCssTextString(["display: block", "position: absolute", "top: 0", "left: 0", "width: 100%", "height: 100%", "border: none", "padding: 0", "margin: 0", "opacity: 0", "z-index: -1000", "pointer-events: none", "visibility: hidden"]); //The target element needs to be positioned (everything except static) so the absolute positioned object will be positioned relative to the target element.