Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-73] touchmove isn't sensitive enough

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:51:53.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsiOS
Labelsn/a
ReporterMarshall Culpepper
AssigneeBlain Hamon
Created2011-04-15T02:23:22.000+0000
Updated2011-04-17T01:51:53.000+0000

Description

In an iPhone Titanium WebView, if you add a document eventlistener for "touchmove", and stroke down the entire screen, the listener will receive 2 or 3 event. The same stroke in Mobile Safari will receive easily 40+ events. Here's some sample code (just load this in an iPhone webview or Mobile Safari):

Comments

  1. Marshall Culpepper 2011-04-15

    gah, HTML formatting, let's try this again:

       <html>
       <head>
           <meta name="viewport" content="width = device-width, user-scalable = yes"/>
           <script>
               var handler = {
                   handleEvent: function(e)
                   {
                       if (window.Titanium) { Titanium.API.debug("event: " +e.type); }
                       else console.log("event: "+e.type);
                       e.preventDefault();
                       e.stopPropagation();
                   }
               };
               
               function load() {
                   document.addEventListener("touchmove", handler, false);
               }
           </script>
       </head>
       <body onload="load()">
           Some content
       </body>
       </html>
       
  2. Blain Hamon 2011-04-15

    Closing as it's now moot. We don't override touchmove anymore.

JSON Source