ncase / polygons

A playable post on how harmless choices can make a harmful world.
http://ncase.me/polygons
Creative Commons Zero v1.0 Universal
1.33k stars 240 forks source link

Touch #3

Closed strugee closed 9 years ago

strugee commented 9 years ago

Lots of people use tablets nowadays. This should probably consume HTML5 Touch Events. The main component that needs to be fixed is the sliders.

That being said, really fantastic job on this.

captbaritone commented 9 years ago

Reference material on how the touch events work: https://developer.mozilla.org/en-US/docs/Web/Guide/Events/Touch_events

ncase commented 9 years ago

OH DERP, I had added "touchmove" and "touchend" events, but totally forgot "touchstart".
That's why it wasn't working.

DERP OVERLOAD.

ncase commented 9 years ago

Alright, it should work now! (Even if it's a bit finicky, coz the slider is only 20px wide and I got fat fingers)