+ 1

Which javascript method allows us to register multiple handlers for a single touch event?

26th Dec 2017, 7:50 PM
Muhmd Ezz
Muhmd Ezz - avatar
1 Answer
+ 18
addEventListener("touchstart",function(event){handler1(event);handler2(event);.....}); //fixed order or addEventListener("touchstart",handler1); addEventListener("touchstart",handler2); //unpredictable order of execution?
26th Dec 2017, 8:00 PM
Valen.H. ~
Valen.H. ~ - avatar