freezedev / lyria

Lightweight DOM-based game framework
The Unlicense
8 stars 0 forks source link

Events: Allow event handler to rebind for specific platforms #23

Closed frostney closed 11 years ago

frostney commented 11 years ago

For example bind click events to touchend on mobile devices or similar stuff

frostney commented 11 years ago

Thinking about it, I don't think it's a good idea. The only use case where it would make sense is mobile devices, where switching from click to touchstart or touchend might lead some side effects, especially on scrollable areas. In these cases it is better to either use Fastclick, a similar library or alternatively rebind the events yourself.

frostney commented 10 years ago

Well, something similar would be possible with #44