[gnome-books/wip/hadess/fix-motion-warnings: 2/2] preview: Fix constant warnings after exiting preview



commit 09ab995a25e491d59223a94897eb4ef7c4218cf3
Author: Bastien Nocera <hadess hadess net>
Date:   Wed Mar 6 13:57:13 2019 +0100

    preview: Fix constant warnings after exiting preview
    
    Cancel a timeout callback related to the controls visibility when
    destroying the associated preview widget.
    
    Closes: #16

 src/preview.js | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/src/preview.js b/src/preview.js
index 2e67be2a..8daec8aa 100644
--- a/src/preview.js
+++ b/src/preview.js
@@ -734,6 +734,7 @@ var PreviewNavControls = new Lang.Class({
         this._prevRevealer.destroy();
         this._nextRevealer.destroy();
         this._tapGesture = null;
+        this._unqueueAutoHide();
     }
 });
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]