]> git.0d.be Git - panikweb.git/commitdiff
update swipe threshold to 30px
authorFrédéric Péters <fpeters@0d.be>
Thu, 2 Apr 2020 08:15:50 +0000 (10:15 +0200)
committerFrédéric Péters <fpeters@0d.be>
Thu, 2 Apr 2020 08:15:50 +0000 (10:15 +0200)
panikweb_templates/static/js/specifics.js

index 0c2f39cb8c9e45394dd473a7979ad026a6ed7989..5d77712240ebbf9bd590679170e2366bbefb4c1a 100644 (file)
@@ -57,11 +57,11 @@ var connection;
                                var Dx = startX - e.touches[0].pageX,
                                        Dy = startY - e.touches[0].pageY;
 
-                               if( Math.abs(Dx) >= 20 ){
+                               if( Math.abs(Dx) >= 30 ){
                                        cancelTouch();
                                        deltaX = (Dx > 0) ? -1 : 1;
                                }
-                               else if( Math.abs(Dy) >= 20 ){
+                               else if( Math.abs(Dy) >= 30 ){
                                        cancelTouch();
                                        deltaY = (Dy > 0) ? 1 : -1;
                                }