[AC-2283] Android: Longclick event doesn't work inside a ScrollView
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | n/a |
| Status | Closed |
| Resolution | Cannot Reproduce |
| Resolution Date | 2013-07-09T18:05:23.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | n/a |
| Components | Titanium SDK & CLI |
| Labels | event, eventlistener, events, longclick,, scrollview |
| Reporter | Fokke Zandbergen |
| Assignee | Daniel Sefton |
| Created | 2013-07-04T11:21:35.000+0000 |
| Updated | 2016-03-08T07:41:17.000+0000 |
Description
The following doesn't work, while
longpress does:
var window = Ti.UI.createWindow({
backgroundColor : 'white'
});
var scrollView = Ti.UI.createScrollView({
backgroundColor : 'blue'
});
var view = Ti.UI.createView({
height : 100,
backgroundColor : 'red'
});
view.addEventListener('longclick', function() {
alert('hello world');
});
scrollView.add(view);
window.add(scrollView);
window.open();
Cannot reproduce on Samsung Galaxy S2 2.3.6 with Ti SDK 3.1.1 GA. The longclick event fires as expected, both inside and outside a scrollview.
Totally missed it was an Android-only event. Sorry for not including the device OS in the environment, or better... read the docs better. Close it.