Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-8069] iOS: Click events missing on scrollViews in 2.0

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2012-04-04T12:43:48.000+0000
Affected Version/sRelease 2.0.0
Fix Version/sRelease 2.0.0, Sprint 2012-06
ComponentsiOS
Labelsmodule_scrollview, qe-testadded
ReporterRick Blalock
AssigneeVishal Duggal
Created2012-03-16T16:10:53.000+0000
Updated2012-04-04T12:43:48.000+0000

Description

Horizontal scrollViews are losing their click events. This seems to be an issue when passing commonJS modules through to other modules. Attached is an example.

Attachments

FileDateSize
Archive.zip2012-03-16T16:10:53.000+00002457879

Comments

  1. Vishal Duggal 2012-03-18

    Test Code
       
       var win = Ti.UI.createWindow({
           backgroundColor: '#fff'
       });
       
       
       var scrollView = Ti.UI.createScrollView({
       	width:200,
       	height:200,
       	contentWidth:"auto",
       	contentHeight:"auto",
       	backgroundColor:'red'
       })
       
       var label = Ti.UI.createLabel({
       	text:"Hi There",
       	backgroundColor:'blue'
       })
       
       label.addEventListener('click',function(e){
       	Ti.API.info('Label Clicked');
       })
       
       scrollView.addEventListener('click',function(e){
       	if (e.source == label)
       	{
       		Ti.API.info("ScrollView got label click");
       	}
       	else {
       		Ti.API.info('ScrollView Clicked');
       	}
       })
       
       scrollView.add(label);
       win.add(scrollView);
       
       win.open();
       
  2. Anshu Mittal 2012-03-19

    Closing bug. Horizontal scrollViews are working fine with their click events. Verified fix on: SDK build: 2.0.0.v20120319003254 Titanium Studio, build: 2.0.0.201203182248 Device: iphone4(iOS 5.1)
  3. Michael Pettiford 2012-04-04

    Reopening/closing to add/remove labels

JSON Source