Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-15925] Android swipeup/swipedown event from button not fired on ScrollView

GitHub Issuen/a
TypeBug
PriorityLow
StatusReopened
ResolutionUnresolved
Affected Version/sn/a
Fix Version/sn/a
ComponentsAndroid
LabelsEvent, UI, reprod
ReporterSatoshi Tanaka
AssigneeUnknown
Created2013-01-20T20:10:41.000+0000
Updated2018-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();

Comments

  1. Eduardo Gomez 2013-01-29

    Hello Satoshi, What Android OS was this tested on? You can state *Galaxy Nexus* OS to replicate this quicker.
  2. Satoshi Tanaka 2013-01-30

    Eduardo, I update Galaxy Nexus OS version.
  3. Lee Morris 2017-07-11

    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

JSON Source