whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ru...@apache.org
Subject [whimsy] branch master updated: ignore swipe if modal dialog is active
Date Sun, 11 Feb 2018 20:10:30 GMT
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 d04d88b  ignore swipe if modal dialog is active
d04d88b is described below

commit d04d88be7e412e5281b36ab564e85362acf938f9
Author: Sam Ruby <rubys@intertwingly.net>
AuthorDate: Sun Feb 11 15:10:14 2018 -0500

    ignore swipe if modal dialog is active
---
 www/board/agenda/views/touch.js.rb | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/www/board/agenda/views/touch.js.rb b/www/board/agenda/views/touch.js.rb
index 89ce963..c717ada 100644
--- a/www/board/agenda/views/touch.js.rb
+++ b/www/board/agenda/views/touch.js.rb
@@ -28,6 +28,9 @@ class Touch
       elapsed = Date.new().getTime() - startTime
       return if elapsed > allowedTime
 
+      # ignore if a modal dialog is active
+      return if document.querySelector('.modal.in')
+
       # compute distances
       touchobj = event.changedTouches[0]
       distX = touchobj.pageX - startX

-- 
To stop receiving notification emails like this one, please contact
rubys@apache.org.

Mime
View raw message