[TIMOB-19502] Windows: wrong behavior for touch events
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | Medium |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2015-09-14T17:42:47.000+0000 |
| Affected Version/s | Release 5.0.0 |
| Fix Version/s | Release 5.1.0 |
| Components | Windows |
| Labels | n/a |
| Reporter | Kota Iguchi |
| Assignee | Kota Iguchi |
| Created | 2015-09-12T15:19:03.000+0000 |
| Updated | 2015-09-25T16:52:07.000+0000 |
Verified using: Windows 8.1 Appc Core 5.0.2-19 Appc NPM 4.2.0 Ti SDK 5.0.1.v20150922104152 Nokia Lumia 930 8.1 Using the code below the touchstart and touchend events are now fired and the longpress event is only fired once
Closing ticketvar win = Ti.UI.createWindow({ backgroundColor: 'blue' }); var lpview = Ti.UI.createView({ backgroundColor: 'red', width: 100, height:100, top: 10 }); lpview.addEventListener('longpress', function(e){ console.log('You longpressed me!'); console.log(JSON.stringify(e)); }); var touchview = Ti.UI.createView({ backgroundColor: 'purple', width: 100, height:100, top: 150 }); touchview.addEventListener('touchstart', function(e){ console.log('You touchstart me!'); console.log(JSON.stringify(e)); }); touchview.addEventListener('touchend', function(e){ console.log('You touchend me!'); console.log(JSON.stringify(e)); }); win.add(lpview); win.add(touchview); win.open()