[TIMOB-18210] iOS: listview - 'dragstart' and 'dragend' event
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2015-11-11T07:52:28.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 5.2.0 |
Components | iOS |
Labels | dragend, dragstart, listview, qe-5.2.0 |
Reporter | Wilson Liaw |
Assignee | Hans Knöchel |
Created | 2014-12-15T03:44:37.000+0000 |
Updated | 2016-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();
Updated PR with cherry-picked community commit: https://github.com/appcelerator/titanium_mobile/pull/7411
Approved. PRs merged.
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.*