aboutsummaryrefslogtreecommitdiffhomepage
path: root/themes/default/view.twig
diff options
context:
space:
mode:
Diffstat (limited to 'themes/default/view.twig')
-rwxr-xr-xthemes/default/view.twig11
1 files changed, 11 insertions, 0 deletions
diff --git a/themes/default/view.twig b/themes/default/view.twig
index 9c9d1561..57d25965 100755
--- a/themes/default/view.twig
+++ b/themes/default/view.twig
@@ -125,6 +125,17 @@
125 $('#article_toolbar .tool.top').parent().hide(); 125 $('#article_toolbar .tool.top').parent().hide();
126 } 126 }
127 }); 127 });
128
129 // Use left and right arrow to navigate on with keyboard
128 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
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
129 </script> 140 </script>
130{% endblock %} 141{% endblock %}