diff mgallery.php @ 222:27e541d02be8

Implement left/right swipe gesture navigation.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 22 Mar 2018 21:59:31 +0200
parents 926779f93229
children 2731d2d8400e
line wrap: on
line diff
--- a/mgallery.php	Thu Mar 22 21:58:13 2018 +0200
+++ b/mgallery.php	Thu Mar 22 21:59:31 2018 +0200
@@ -633,6 +633,9 @@
 mgalAddEventOb("window", window, "load", mgalAdjustImage);
 mgalAddEventOb("document", document, "keypress", mgalProcessKeyPress);
 
+mgalAddEventOb("document", document, "touchstart", mgalTouchStart);
+mgalAddEventOb("document", document, "touchmove", mgalTouchMove);
+
 adjustPID = -1;
 </script>
 <?