aboutsummaryrefslogtreecommitdiffstats
path: root/content_scripts/vimium_frontend.coffee
diff options
context:
space:
mode:
authorStephen Blott2014-12-19 05:42:02 +0000
committerStephen Blott2014-12-19 05:42:02 +0000
commit4d1b448511b5ce643b90b35d5693bca8b0ffcd73 (patch)
tree0b3062c7ee3502a56402fd88242b62c2bdae187b /content_scripts/vimium_frontend.coffee
parentc972978b43b943a1ad8709992d080bedbbe12ae2 (diff)
parent226cfb8011e83e48b9c723ebc891ad0e9a7c82ec (diff)
downloadvimium-4d1b448511b5ce643b90b35d5693bca8b0ffcd73.tar.bz2
Merge branch 'mrmr1993-hide-cursor-on-scroll' into post-1.46
Diffstat (limited to 'content_scripts/vimium_frontend.coffee')
-rw-r--r--content_scripts/vimium_frontend.coffee11
1 files changed, 6 insertions, 5 deletions
diff --git a/content_scripts/vimium_frontend.coffee b/content_scripts/vimium_frontend.coffee
index 6dd244de..21a05de6 100644
--- a/content_scripts/vimium_frontend.coffee
+++ b/content_scripts/vimium_frontend.coffee
@@ -1107,8 +1107,7 @@ Tween =
CursorHider =
#
- # Hides the cursor when the browser scrolls, and prevent mouse from hovering while invisible
- # NOTE(smblott) onScroll and onMouseMove events come in pairs.
+ # Hide the cursor when the browser scrolls, and prevent mouse from hovering while invisible.
#
cursorHideStyle: null
isScrolling: false
@@ -1124,12 +1123,14 @@ CursorHider =
CursorHider.isScrolling = false
init: ->
- # NOTE(smblott) CursorHider is currently disabled pending a fix for #1345.
- return
+ # Disable cursor hiding for Chrome versions less than 39.0.2171.71 due to a suspected browser error.
+ # See #1345 and #1348.
+ return unless Utils.haveChromeVersion "39.0.2171.71"
+
@cursorHideStyle = document.createElement("style")
@cursorHideStyle.innerHTML = """
body * {pointer-events: none !important; cursor: none !important;}
- body {cursor: none !important;}
+ body, html {cursor: none !important;}
"""
window.addEventListener "mousemove", @onMouseMove
window.addEventListener "scroll", @onScroll