aboutsummaryrefslogtreecommitdiffstats
path: root/lib/dom_utils.coffee
diff options
context:
space:
mode:
Diffstat (limited to 'lib/dom_utils.coffee')
-rw-r--r--lib/dom_utils.coffee2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/dom_utils.coffee b/lib/dom_utils.coffee
index d39ce1de..7232bb45 100644
--- a/lib/dom_utils.coffee
+++ b/lib/dom_utils.coffee
@@ -290,7 +290,7 @@ DomUtils =
getViewportTopLeft: ->
style = getComputedStyle document.documentElement
- if style.position == "static"
+ if style.position == "static" and not /content|paint|strict/.test(style.contain or "")
zoom = +style.zoom || 1
top: Math.ceil(window.scrollY / zoom), left: Math.ceil(window.scrollX / zoom)
else