From 2869f018045c5a2f4f7525a5ea6d98348495540d Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Tue, 29 Mar 2016 19:34:04 +0200 Subject: remove buggy swipe actions --- themes/baggy/view.twig | 9 --------- themes/default/view.twig | 8 -------- 2 files changed, 17 deletions(-) (limited to 'themes') diff --git a/themes/baggy/view.twig b/themes/baggy/view.twig index 9ee64fc0..1381519c 100755 --- a/themes/baggy/view.twig +++ b/themes/baggy/view.twig @@ -113,14 +113,5 @@ // use keyboard to do actions actionArticle('{{ entry.id|e }}'); - - // swipe to right or left on mobile to navigate - $('article').on("swiperight", function(){ - goLeft('?view=view&id={{ navigate.nextid|e }}'); - }); - $('article').on("swipeleft", function(){ - goRight('?view=view&id={{ navigate.previousid|e }}'); - }); - {% endblock %} diff --git a/themes/default/view.twig b/themes/default/view.twig index 0010d18f..d1b6496e 100755 --- a/themes/default/view.twig +++ b/themes/default/view.twig @@ -129,13 +129,5 @@ // Use left and right arrow to navigate on with keyboard navigateKeyboard('?view=view&id={{ navigate.nextid|e }}','?view=view&id={{ navigate.previousid|e }}'); - // swipe to right or left on mobile to navigate - $('article').on("swiperight", function(){ - goLeft('?view=view&id={{ navigate.nextid|e }}'); - }); - $('article').on("swipeleft", function(){ - goRight('?view=view&id={{ navigate.previousid|e }}'); - }); - {% endblock %} -- cgit v1.2.3