From ca9c7a8cee6c7749ab535c60a5422487be538089 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Fri, 4 Mar 2016 06:39:42 +0300 Subject: [PATCH] some cleanup... Signed-off-by: Alex A. Naanou --- ui (gen4)/features/ui.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui (gen4)/features/ui.js b/ui (gen4)/features/ui.js index 97a8c473..21b40569 100755 --- a/ui (gen4)/features/ui.js +++ b/ui (gen4)/features/ui.js @@ -1061,7 +1061,6 @@ module.Clickable = core.ImageGridFeatures.Feature({ //--------------------------------------------------------------------- -// XXX might be a good idea to add a threshold to show the cursor... var AutoHideCursor = module.AutoHideCursor = core.ImageGridFeatures.Feature({ title: '', @@ -1089,6 +1088,7 @@ module.AutoHideCursor = core.ImageGridFeatures.Feature({ var x, y var timer var timeout = this.config['cursor-autohide-timeout'] || 1000 + var handler = this.__cursor_autohide_handler = (this.__cursor_autohide_handler @@ -1136,6 +1136,7 @@ module.AutoHideCursor = core.ImageGridFeatures.Feature({ !viewer.prop('cursor-autohide') && viewer .prop('cursor-autohide', true) + .addClass('cursor-hidden') .mousemove(handler) // teardown...