e.touches[0].clientX ๋ฅผ e.touches && e.touches[0].clientX ๋ก ๋ณ๊ฒฝ
e.touches[0].clientX || e.clientX;
↓
(e.touches && e.touches[0].clientX) || e.clientX;
stackoverflow.com/questions/38527202/mouse-and-touch-events-not-working-as-expected
Mouse and Touch events not working as expected
I'm trying to add a mouse and touch down and move event. In the events function, I want to get the clientX amount. I did the following to get it: console.log(e.touches[0].clientX || e.clientX); B...
stackoverflow.com