Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-19502] Windows: wrong behavior for touch events

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2015-09-14T17:42:47.000+0000
Affected Version/sRelease 5.0.0
Fix Version/sRelease 5.1.0
ComponentsWindows
Labelsn/a
ReporterKota Iguchi
AssigneeKota Iguchi
Created2015-09-12T15:19:03.000+0000
Updated2015-09-25T16:52:07.000+0000

Description

Comments

  1. Ewan Harris 2015-09-22

    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
       var 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()
       
    Closing ticket

JSON Source