[TIMOB-73] touchmove isn't sensitive enough
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-04-17T01:51:53.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | iOS |
Labels | n/a |
Reporter | Marshall Culpepper |
Assignee | Blain Hamon |
Created | 2011-04-15T02:23:22.000+0000 |
Updated | 2011-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
- 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>
- Blain Hamon 2011-04-15
Closing as it's now moot. We don't override touchmove anymore.