Commits

Michele Bini committed 9877666

Consistently reset variables at the end of the scrolling phase.

Comments (0)

Files changed (1)

viewport-scrolling.jl

    (inexact->exact (round viewport-scrolling--y)))
   (if (and (= viewport-scrolling--goalx viewport-x-offset)
 	   (= viewport-scrolling--goaly viewport-y-offset))
-      (when viewport-scrolling--timer
+      (progn
+	(when viewport-scrolling--timer
+	  (delete-timer viewport-scrolling--timer)
+	  (setq viewport-scrolling--timer nil))
 	(setq viewport-scrolling--x viewport-x-offset
 	      viewport-scrolling--y viewport-y-offset
 	      viewport-scrolling--x-speed 0.0
 	      viewport-scrolling--y-speed 0.0)
-	(delete-timer viewport-scrolling--timer)
-	(setq viewport-scrolling--timer nil)
 	(call-hook 'viewport-scrolling-done))
     (setq viewport-scrolling--timer
 	  (make-timer viewport-scrolling--run 0
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.