{ "id": "62727", "key": "TIMOB-2095", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-06-03T15:10:37.000+0000", "created": "2011-04-15T03:10:20.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-02-10T00:53:10.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "{html}

1.use the script below, and note how many times the event is\nfired
\nresults:the event is fired twice. works as expected on android.

\n

var win = Ti.UI.currentWindow;
\nvar slider = Titanium.UI.createSlider({

\n

min:0,
\nmax:100,
\nvalue:5,
\nwidth:100,
\nheight:'auto',
\ntop:30
\n});

\n

slider.addEventListener('touchend', function(e){
\nTi.API.info(\"touchend\");
\n}); win.add(slider);

{html}", "attachment": [], "flagged": false, "summary": "iOS - Titanium.UI.Slider 'touchend' event is fired 2X", "creator": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "127481", "author": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "body": "{html}

(from [0695e5a1ce39b3ff73983a0f21192258bbbdfd22])\n[#2095 state:fixed-in-qa] Workaround for Apple\nbug where EventTouchUpInside is fired 2x with inaccurate\ntimestamps. \nhttps://github.com/appcelerator/titanium_mobile/commit/0695e5a1ce39...

{html}", "updateAuthor": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:10:20.000+0000", "updated": "2011-04-15T03:10:20.000+0000" }, { "id": "127482", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Bug filed with Apple. Radar # is 8910360.

{html}", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:10:21.000+0000", "updated": "2011-04-15T03:10:21.000+0000" }, { "id": "127483", "author": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "body": "{html}

Tested on iPhone Simulator 4.2 with the code provided and works\nas expected.

\n

Ti. SDK 1.6 (Jan 25 2011 17:39 r1ead074f)

{html}", "updateAuthor": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:10:21.000+0000", "updated": "2011-04-15T03:10:21.000+0000" }, { "id": "127484", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Reopened by #3580.

\n

Note that Apple stated they would not fix this bug.

{html}", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:10:21.000+0000", "updated": "2011-04-15T03:10:21.000+0000" }, { "id": "134840", "author": { "name": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "body": "sliderEnd: in TiUISlider.m was patched with a timer to alleviate this Apple bug.", "updateAuthor": { "name": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-06-03T15:10:37.000+0000", "updated": "2011-06-03T15:10:37.000+0000" }, { "id": "140639", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified fixed (event only fires once) with Verizon iPhone 4 (4.2.8) , Titanium Studio, build: 1.0.0.201106021621, Titanium SDK version: 1.7.X rc9515533.\n", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-06-06T11:51:22.000+0000", "updated": "2011-06-06T11:51:22.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }