Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-9183] iOS: Swipe event does not work for up and down

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-05-24T11:11:47.000+0000
Affected Version/sRelease 2.0.1
Fix Version/sRelease 2.1.0, Sprint 2012-11 API
ComponentsiOS
Labelsapi, module_view, parity, qe-testadded
ReporterPedro Enrique
AssigneePedro Enrique
Created2012-05-21T00:07:31.000+0000
Updated2014-04-01T01:41:08.000+0000

Description

The "swipe" event on the Ti.UI.View only works for left and right, up and down are missing.


var win = Ti.UI.createWindow({
	backgroundColor: 'white';
});

var view = Ti.UI.createView({
	width: Ti.UI.FILL,
	heigh: Ti.UI.FILL
});

win.add(view);

view.addEventListener('swipe', function(e){
	alert(e);
});

win.open();

As we can see from running this code, the event only fires when swiped left and right. Swiping up and down does nothing.

Comments

  1. Pedro Enrique 2012-05-21

    Pull request: https://github.com/appcelerator/titanium_mobile/pull/2236
  2. Blain Hamon 2012-05-24

    Pull merged.
  3. Anshu Mittal 2012-06-04

    Swipe event successfully works for up and down also. Verified on: SDK: 2.1.0.v20120604151821 Studio: 2.1.0.201206010843 Devices: iPad2(v 5.1), iPhone 3GS (v 5.0.1)

JSON Source