[TIMOB-8778] MobileWeb: Queue up touch/mouse events and process and a slower frequency than realtime
GitHub Issue | n/a |
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-05-29T14:02:00.000+0000 |
Affected Version/s | Release 2.1.0 |
Fix Version/s | Release 2.1.0, Sprint 2012-11 MW |
Components | MobileWeb |
Labels | qe-port |
Reporter | Chris Barber |
Assignee | Bryan Hughes |
Created | 2012-04-18T13:30:46.000+0000 |
Updated | 2012-09-04T10:14:31.000+0000 |
Description
Right now events are processed immediately, but since events (i.e. touchmove events) can fire faster than the eye can perseve, it makes no sense to process the events right away. Instead, the gesture system should queue up touch events, then process them all at once. This interval should perhaps be 30 times per second. This can be done with a setInterval(), but might be better to use requestAnimationFrame() if there is enough browser support.
Attachments
File | Date | Size |
app.js | 2012-05-24T18:54:19.000+0000 | 773 |
Pull Request: https://github.com/appcelerator/titanium_mobile/pull/2275
Verified fix on: Titanium studio : 2.1.1.201207271312 SDK version : 2.2.0.v20120830141234 Chrome 21.0.xx Firefox 15 Safari 6.0 Android 4.0.4 default browser,chrome 18.0.xx ,firefox 15.0 Iphone 5.1.1 mobile safari