Affects Version/s: Release 2.1.3, Release 2.1.4, Release 3.0.0, Release 3.1.0
Fix Version/s: Release 6.2.0
Application type: Mobile Titanium SDK: Titanium SDK version: 2.1.3 (10/02/12 16:16 15997d0); also confirmed in versions 2.0.1 and above. Target Platform: Android versions 2.2 to 4.0.3 Device: Android emulator Host OS: OS X 10.6.8 Titanium Studio: 126.96.36.199208301612
In Android emulator, setting touchEnabled: false on a child view causes a longpress event to fire when a click is performed on the child. Also, when a longpress is performed on the child, you get two longpress events.
I have a parent view that contains a child view, and I set touchEnabled: false on the child view.
1) On Android in the emulator, When I do a click on the child view, not only does the parent view receive a click event (expected) but it also receives a longpress event (unexpected). On iOS, the longpress event does not fire on a click (expected).
2) Not sure if this should be a separate bug report, so I'll mention it here first: Additionally, when I actually do a longpress on the child view, I get two longpress events on the parent, instead of the expected single event.
If I set touchEnabled: true on the child view, then things work as expected in Android in both above cases.
The following code can be pasted into app.js to illustrate the problem: