Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-18210] iOS: listview - 'dragstart' and 'dragend' event

GitHub Issuen/a
TypeNew Feature
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2015-11-11T07:52:28.000+0000
Affected Version/sn/a
Fix Version/sRelease 5.2.0
ComponentsiOS
Labelsdragend, dragstart, listview, qe-5.2.0
ReporterWilson Liaw
AssigneeHans Knöchel
Created2014-12-15T03:44:37.000+0000
Updated2016-01-22T00:43:23.000+0000

Description

'dragstart' and 'dragend' event (like in scrollview) for listview Test case:
var win = Ti.UI.createWindow({backgroundColor: 'white'});
var listView = Ti.UI.createListView();

listView.addEventListener('dragstart', function() {
	Ti.API.error("dragstart");
});

listView.addEventListener('dragend', function() {
	Ti.API.error("dragend");
});

win.add(listView);
win.open();

Comments

  1. Hans Knöchel 2015-11-09

    Updated PR with cherry-picked community commit: https://github.com/appcelerator/titanium_mobile/pull/7411
  2. Chee Kiat Ng 2015-11-11

    Approved. PRs merged.
  3. Harry Bryant 2016-01-20

    Verified fixed, ran demo code and receive "dragstart" console message when dragging finger from original touch position. On release, receive "dragend" console message. Tested on: iPhone 6s Plus Device (9.2) Mac OSX El Capitan 10.11 (15A284) Ti SDK: 5.2.0.v20160114021251 Appc NPM: 4.2.3-1 App CLI: 5.2.0-220 Xcode 7.2 Node v4.2.3 *Closing Ticket.*

JSON Source