[TIMOB-15925] Android swipeup/swipedown event from button not fired on ScrollView
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | Low |
| Status | Reopened |
| Resolution | Unresolved |
| Affected Version/s | n/a |
| Fix Version/s | n/a |
| Components | Android |
| Labels | Event, UI, reprod |
| Reporter | Satoshi Tanaka |
| Assignee | Unknown |
| Created | 2013-01-20T20:10:41.000+0000 |
| Updated | 2018-02-28T20:03:34.000+0000 |
Description
An application has a button on ScrollView, and this application want to get swipeup/swipedown event from button.
But on android, swipeup/swipedown event not fired.
below is sample code:
var window = Ti.UI.createWindow({fullscreen:false});
var view = Ti.UI.createScrollView({backgroundColor: 'green'});
window.add(view);
view.addEventListener('swipe', function(e){
alert('view' + e.direction);
});
var button = Ti.UI.createButton({
title: 'swipe it!',
width: '300px',
height: '300px'
});
view.add(button);
button.addEventListener('swipe', function(e){
alert('button' + e.direction);
});
window.open();
Hello Satoshi, What Android OS was this tested on? You can state *Galaxy Nexus* OS to replicate this quicker.
Eduardo, I update Galaxy Nexus OS version.
I am able to reproduce this issue with the following environment; Pixel (7.1) Studio 4.9.0.201705302345 Ti SDK 6.1.1 GA Appc NPM 4.2.9 Appc CLI 6.2.2 Ti CLI 5.0.14 Alloy 1.9.11 Xcode 8.2 (8C38) Node v4.8.2 Java 1.8.0_131