This is an automated email from the ASF dual-hosted git repository.

rubys pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git


The following commit(s) were added to refs/heads/master by this push:
     new 388cc62  more touch fixes
388cc62 is described below

commit 388cc621c882660eb4820747398aa070366b66ae
Author: Sam Ruby <[email protected]>
AuthorDate: Mon Oct 2 09:33:58 2017 -0400

    more touch fixes
---
 www/board/agenda/views/touch.js.rb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/www/board/agenda/views/touch.js.rb 
b/www/board/agenda/views/touch.js.rb
index 70ae30e..3d95f5c 100644
--- a/www/board/agenda/views/touch.js.rb
+++ b/www/board/agenda/views/touch.js.rb
@@ -20,7 +20,7 @@ class Touch
     end
 
     document.body.addEventListener :touchend do |event|
-      elapsed = startTime - Date.new().getTime()
+      elapsed = Date.new().getTime() - startTime
       return if elapsed > allowedTime
 
       touchobj = event.changedTouches[0]
@@ -45,7 +45,7 @@ class Touch
         link.click() if link
 
       when 'up', 'down'
-        Main.navigate history.state.path.sub(/[^\/]\/?$/, '') || '.'
+        Main.navigate history.state.path.sub(/[^\/]+\/?$/, '') || '.'
       end
     end
 

-- 
To stop receiving notification emails like this one, please contact
['"[email protected]" <[email protected]>'].

Reply via email to