comparison 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
comparison
equal deleted inserted replaced
221:ba89afea0f29 222:27e541d02be8
631 mgalAddEvent("imageImage", "load", mgalAdjustImage); 631 mgalAddEvent("imageImage", "load", mgalAdjustImage);
632 mgalAddEventOb("window", window, "resize", mgalAdjustImage); 632 mgalAddEventOb("window", window, "resize", mgalAdjustImage);
633 mgalAddEventOb("window", window, "load", mgalAdjustImage); 633 mgalAddEventOb("window", window, "load", mgalAdjustImage);
634 mgalAddEventOb("document", document, "keypress", mgalProcessKeyPress); 634 mgalAddEventOb("document", document, "keypress", mgalProcessKeyPress);
635 635
636 mgalAddEventOb("document", document, "touchstart", mgalTouchStart);
637 mgalAddEventOb("document", document, "touchmove", mgalTouchMove);
638
636 adjustPID = -1; 639 adjustPID = -1;
637 </script> 640 </script>
638 <? 641 <?
639 } 642 }
640 } 643 }