Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-8778] MobileWeb: Queue up touch/mouse events and process and a slower frequency than realtime

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-05-29T14:02:00.000+0000
Affected Version/sRelease 2.1.0
Fix Version/sRelease 2.1.0, Sprint 2012-11 MW
ComponentsMobileWeb
Labelsqe-port
ReporterChris Barber
AssigneeBryan Hughes
Created2012-04-18T13:30:46.000+0000
Updated2012-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

FileDateSize
app.js2012-05-24T18:54:19.000+0000773

Comments

  1. Bryan Hughes 2012-05-24

    Pull Request: https://github.com/appcelerator/titanium_mobile/pull/2275
  2. Lokesh Choudhary 2012-09-04

    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

JSON Source