Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>This problem may be due to a bug (feature?) in Chrome/Android. See <a href="https://code.google.com/p/chromium/issues/detail?id=260732" rel="nofollow">this bug report</a>.</p> <p>This test demonstrates the behavior (<a href="http://jsfiddle.net/B5wgb/8/" rel="nofollow">JSFiddle</a>):</p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;title&gt;&lt;/title&gt; &lt;script&gt; var delay = 200; var haltEvent = function(event) { event.preventDefault(); event.stopPropagation(); }; var pause = function() { var startTime = new Date().getTime(); while (new Date().getTime() &lt; startTime + delay); }; window.addEventListener('load', function() { var target = document.querySelector('#target'); var status = document.querySelector('#status'); target.addEventListener('touchstart', function(event) { haltEvent(event); status.innerHTML = '[touchstart]'; }, true); target.addEventListener('touchmove', function(event) { pause(); haltEvent(event); status.innerHTML = '[touchmove]'; }, true); target.addEventListener('touchend', function(event) { status.innerHTML = '[touchend]'; }, true); target.addEventListener('touchcancel', function(event) { status.innerHTML = '[touchcancel]'; }, true); }); &lt;/script&gt; &lt;style&gt; #target { background-color: green; height: 300px; } #status { text-align: center; } &lt;/style&gt; &lt;/head&gt; &lt;body&gt; &lt;div id="target"&gt;&lt;/div&gt; &lt;p id="status"&gt;[]&lt;/p&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p>I don't find the touchcancel event to be fired randomly. Instead, it is fired whenever it takes ~200 ms to return from a touchmove event handler.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload