diff options
author | Thomas Citharel <tcit@tcit.fr> | 2016-03-29 19:34:04 +0200 |
---|---|---|
committer | Thomas Citharel <tcit@tcit.fr> | 2016-03-29 19:34:04 +0200 |
commit | 2869f018045c5a2f4f7525a5ea6d98348495540d (patch) | |
tree | 0b89474eb0345be62066bbbf44113862a8650ccf | |
parent | 0dd043c19b08ca46ee03989186df0de01e60f798 (diff) | |
download | wallabag-2869f018045c5a2f4f7525a5ea6d98348495540d.tar.gz wallabag-2869f018045c5a2f4f7525a5ea6d98348495540d.tar.zst wallabag-2869f018045c5a2f4f7525a5ea6d98348495540d.zip |
remove buggy swipe actions
-rwxr-xr-x | themes/baggy/view.twig | 9 | ||||
-rwxr-xr-x | themes/default/view.twig | 8 |
2 files changed, 0 insertions, 17 deletions
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 @@ | |||
113 | 113 | ||
114 | // use keyboard to do actions | 114 | // use keyboard to do actions |
115 | actionArticle('{{ entry.id|e }}'); | 115 | actionArticle('{{ entry.id|e }}'); |
116 | |||
117 | // swipe to right or left on mobile to navigate | ||
118 | $('article').on("swiperight", function(){ | ||
119 | goLeft('?view=view&id={{ navigate.nextid|e }}'); | ||
120 | }); | ||
121 | $('article').on("swipeleft", function(){ | ||
122 | goRight('?view=view&id={{ navigate.previousid|e }}'); | ||
123 | }); | ||
124 | |||
125 | </script> | 116 | </script> |
126 | {% endblock %} | 117 | {% 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 @@ | |||
129 | // Use left and right arrow to navigate on with keyboard | 129 | // Use left and right arrow to navigate on with keyboard |
130 | navigateKeyboard('?view=view&id={{ navigate.nextid|e }}','?view=view&id={{ navigate.previousid|e }}'); | 130 | navigateKeyboard('?view=view&id={{ navigate.nextid|e }}','?view=view&id={{ navigate.previousid|e }}'); |
131 | 131 | ||
132 | // swipe to right or left on mobile to navigate | ||
133 | $('article').on("swiperight", function(){ | ||
134 | goLeft('?view=view&id={{ navigate.nextid|e }}'); | ||
135 | }); | ||
136 | $('article').on("swipeleft", function(){ | ||
137 | goRight('?view=view&id={{ navigate.previousid|e }}'); | ||
138 | }); | ||
139 | |||
140 | </script> | 132 | </script> |
141 | {% endblock %} | 133 | {% endblock %} |