- From: Patrick H. Lauke <notifications@github.com>
- Date: Tue, 02 Aug 2016 15:16:58 -0700
- To: w3c/touch-events <touch-events@noreply.github.com>
Received on Tuesday, 2 August 2016 22:18:02 UTC
> +if ('ontouchstart' in window) { > + // set up event listeners for touch > + target.addEventListener('touchend', ...); > + ... > +} else { > + // set up event listeners for mouse/keyboard > + target.addEventListener('click', ...); > + ... > +} > +</code></pre> > + <p>Instead, developers should handle different forms of input concurrently.</p> > +<pre class="example"><code> > +// concurrent "touch AND mouse/keyboard" event binding > + > +// set up event listeners for touch > +target.addEventListener('touchend', ...); avoided doing that, because later i talk about both doing preventDefault AND the possibility of using InputDeviceCapabilities, so i'd possibly need to do both (unless i reword it slightly, hmmm) --- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/w3c/touch-events/pull/72/files/bb89c1d502b1a094e2e3b1883a84d7978094088c#r73248807
Received on Tuesday, 2 August 2016 22:18:02 UTC