mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-12-17 00:31:40 +00:00
some cleanup...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
11a6753c52
commit
ca9c7a8cee
@ -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 =
|
var AutoHideCursor =
|
||||||
module.AutoHideCursor = core.ImageGridFeatures.Feature({
|
module.AutoHideCursor = core.ImageGridFeatures.Feature({
|
||||||
title: '',
|
title: '',
|
||||||
@ -1089,6 +1088,7 @@ module.AutoHideCursor = core.ImageGridFeatures.Feature({
|
|||||||
var x, y
|
var x, y
|
||||||
var timer
|
var timer
|
||||||
var timeout = this.config['cursor-autohide-timeout'] || 1000
|
var timeout = this.config['cursor-autohide-timeout'] || 1000
|
||||||
|
|
||||||
var handler
|
var handler
|
||||||
= this.__cursor_autohide_handler
|
= this.__cursor_autohide_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')
|
||||||
&& viewer
|
&& viewer
|
||||||
.prop('cursor-autohide', true)
|
.prop('cursor-autohide', true)
|
||||||
|
.addClass('cursor-hidden')
|
||||||
.mousemove(handler)
|
.mousemove(handler)
|
||||||
|
|
||||||
// teardown...
|
// teardown...
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user