Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-13699] Android: ListView does not fire the 'pinch' event

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2013-06-17T22:56:24.000+0000
Affected Version/sn/a
Fix Version/s2013 Sprint 12 API, 2013 Sprint 12, Release 3.1.2, Release 3.2.0
ComponentsAndroid
Labelsn/a
ReporterDavide Cassenti
AssigneeSunila
Created2013-04-29T11:35:19.000+0000
Updated2014-06-19T12:42:41.000+0000

Description

Problem description

The ListView on Android does not fire the pinch event.

Steps to reproduce

Use the following code to reproduce the issue:
var win = Ti.UI.createWindow({backgroundColor: 'white'});

var section = Ti.UI.createListSection({
	headerTitle: 'Test',
	items: [{properties: {title: 'Apple'}}]
});

var listView = Ti.UI.createListView({
	sections: [section]
});

listView.addEventListener('pinch', function(e) {
	alert(e);
});

win.add(listView);
win.open();
Pinch event is not fired on Android, while it works fine on iOS.

Comments

  1. Davide Cassenti 2013-05-20

    Note: the event does not also bubble to the parent view.
  2. Sunila 2013-05-28

    Override registerForTouch to use the ListView instead of the container to handle the ListView touch events https://github.com/appcelerator/titanium_mobile/pull/4334
  3. Ping Wang 2013-07-26

    backport PR: https://github.com/appcelerator/titanium_mobile/pull/4504
  4. Lokesh Choudhary 2013-08-15

    Verified the fix. Now we get the pinch event. Thus closing Environment: Appcel Studio : 3.1.2.201308091728 Ti SDK : 3.1.2.v20130814124556 Mac OSX : 10.8.4 Alloy : 1.2.0-beta CLI - 3.1.2-alpha android 4.2.2
  5. Olga Romero 2013-08-15

    Tested and verified fix with: Titanium Studio, build: 3.1.2.201308091617 Titanium SDK, build: 3.1.2.v20130814124556 Alloy: 1.2.0-beta CLI: 3.1.2-alpha Device: Nexus7(2) Android version 4.3 ListView does fire the "pinch" event

JSON Source