comparison mgallery.php @ 246:548a349bc015

Finally fix Chrome/Chromium support for keyboard navigation.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 03 May 2018 14:12:40 +0300
parents 8ddf84b459d3
children 384a8ed6687d
comparison
equal deleted inserted replaced
245:8ddf84b459d3 246:548a349bc015
610 610
611 mgalAddEvent("imageImage", "load", mgalAdjustImage); 611 mgalAddEvent("imageImage", "load", mgalAdjustImage);
612 mgalAddEventOb("window", window, "resize", mgalAdjustImage); 612 mgalAddEventOb("window", window, "resize", mgalAdjustImage);
613 mgalAddEventOb("window", window, "load", mgalAdjustImage); 613 mgalAddEventOb("window", window, "load", mgalAdjustImage);
614 mgalAddEventOb("document", document, "keypress", mgalProcessKeyPress); 614 mgalAddEventOb("document", document, "keypress", mgalProcessKeyPress);
615 mgalAddEventOb("document", document, "keydown", mgalProcessKeyPress);
615 616
616 mgalAddEventOb("document", document, "touchstart", mgalTouchStart); 617 mgalAddEventOb("document", document, "touchstart", mgalTouchStart);
617 mgalAddEventOb("document", document, "touchmove", mgalTouchMove); 618 mgalAddEventOb("document", document, "touchmove", mgalTouchMove);
618 619
619 adjustPID = -1; 620 adjustPID = -1;