[TIMOB-5595] MobileWeb: You cannot reuse event object for twofingertap event
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-06-16T23:13:30.000+0000 |
Affected Version/s | Release 1.7.2 |
Fix Version/s | Sprint 2011-41 |
Components | MobileWeb |
Labels | n/a |
Reporter | Andrew Kulinich |
Assignee | Maxim Negadaylov |
Created | 2011-06-16T08:40:16.000+0000 |
Updated | 2017-03-03T22:33:59.000+0000 |
Description
touchable.js
code
...
obj.fireEvent('touchstart', oEvent);
if (event.touches && 2 == event.touches.length) {
oEvent.type = 'twofingertap';
obj.fireEvent('twofingertap', oEvent);
}
....
code
in this case inside "touchstart" eventlistener you will have type === 'twofingertap'
Closing ticket.