some cleanup...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2016-03-04 06:39:42 +03:00
parent 11a6753c52
commit ca9c7a8cee

View File

@ -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...