{"action":"created","comment":{"url":"https://api.github.com/repos/appcelerator/titanium_mobile/pulls/comments/57644971","id":57644971,"diff_hunk":"@@ -160,21 +168,54 @@ - (IBAction)stepperChanged:(id)sender\n     [self.proxy replaceValue:newValue forKey:@\"value\" notification:YES];\n     \n     if ([self.proxy _hasListeners:@\"change\"]) {\n-        [self.proxy fireEvent:@\"change\" withObject:[NSDictionary dictionaryWithObject:newValue forKey:@\"value\"]];\n+        [self.proxy fireEvent:@\"change\" withObject:[NSDictionary dictionaryWithObjectsAndKeys:\n+                                                    [NSNumber numberWithDouble:stepper.value],@\"value\",\n+                                                    [NSNumber numberWithDouble:stepper.minimumValue],@\"minimum\",\n+                                                    [NSNumber numberWithFloat:stepper.maximumValue],@\"maximum\",\n+                                                    nil]];\n     }\n }\n \n-- (IBAction)stepperTouch:(id)sender forEvent:(UIEvent *)event\n+- (void)controlAction:(id)sender forEvent:(UIEvent *)event\n {\n     UITouch *touch = [[event allTouches] anyObject];\n-    if([self.proxy _hasListeners:@\"click\"]) {\n-        [self.proxy fireEvent:@\"click\" withObject:[NSDictionary\n-                                                   dictionaryWithDictionary:[TiUtils touchPropertiesToDictionary:touch\n-                                                                                andPoint:[touch locationInView:self]]]];\n+    NSString *fireEvent;\n+    NSString * fireActionEvent = nil;\n+    switch (touch.phase) {\n+        case UITouchPhaseBegan:\n+            if (touchStarted) {\n+                return;\n+            }\n+            touchStarted = YES;\n+            fireEvent = @\"touchstart\";\n+            break;\n+        case UITouchPhaseMoved:\n+            fireEvent = @\"touchmove\";\n+            break;\n+        case UITouchPhaseEnded:\n+            touchStarted = NO;\n+            fireEvent = @\"touchend\";\n+            if (stepper.highlighted) {\n+                fireActionEvent = [touch tapCount] == 1 ? @\"click\" : ([touch tapCount] == 2 ? @\"dblclick\" : nil);\n+            }\n+            break;\n+        case UITouchPhaseCancelled:\n+            touchStarted = NO;\n+            fireEvent = @\"touchcancel\";\n+            break;\n+        default:\n+            return;\n+    }","path":"iphone/Classes/TiUIiOSStepper.m","position":213,"original_position":213,"commit_id":"3ef6a00e80dc79ed8375e3055c6f797fd2a0254b","original_commit_id":"3ef6a00e80dc79ed8375e3055c6f797fd2a0254b","user":{"login":"hansemannn","id":10667698,"avatar_url":"https://avatars.githubusercontent.com/u/10667698?v=3","gravatar_id":"","url":"https://api.github.com/users/hansemannn","html_url":"https://github.com/hansemannn","followers_url":"https://api.github.com/users/hansemannn/followers","following_url":"https://api.github.com/users/hansemannn/following{/other_user}","gists_url":"https://api.github.com/users/hansemannn/gists{/gist_id}","starred_url":"https://api.github.com/users/hansemannn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hansemannn/subscriptions","organizations_url":"https://api.github.com/users/hansemannn/orgs","repos_url":"https://api.github.com/users/hansemannn/repos","events_url":"https://api.github.com/users/hansemannn/events{/privacy}","received_events_url":"https://api.github.com/users/hansemannn/received_events","type":"User","site_admin":false},"body":"Do we need to do this manually? Want to make sure we don't use business-logic multiple times","created_at":"2016-03-28T22:32:41Z","updated_at":"2016-03-28T22:32:41Z","html_url":"https://github.com/appcelerator/titanium_mobile/pull/7881#discussion_r57644971","pull_request_url":"https://api.github.com/repos/appcelerator/titanium_mobile/pulls/7881","_links":{"self":{"href":"https://api.github.com/repos/appcelerator/titanium_mobile/pulls/comments/57644971"},"html":{"href":"https://github.com/appcelerator/titanium_mobile/pull/7881#discussion_r57644971"},"pull_request":{"href":"https://api.github.com/repos/appcelerator/titanium_mobile/pulls/7881"}}},"pull_request":{"url":"https://api.github.com/repos/appcelerator/titanium_mobile/pulls/7881","id":64094396,"html_url":"https://github.com/appcelerator/titanium_mobile/pull/7881","diff_url":"https://github.com/appcelerator/titanium_mobile/pull/7881.diff","patch_url":"https://github.com/appcelerator/titanium_mobile/pull/7881.patch","issue_url":"https://api.github.com/repos/appcelerator/titanium_mobile/issues/7881","number":7881,"state":"open","locked":false,"title":"[TIMOB-6305] iOS: Add Stepper UI element","user":{"login":"AngelkPetkov","id":14097072,"avatar_url":"https://avatars.githubusercontent.com/u/14097072?v=3","gravatar_id":"","url":"https://api.github.com/users/AngelkPetkov","html_url":"https://github.com/AngelkPetkov","followers_url":"https://api.github.com/users/AngelkPetkov/followers","following_url":"https://api.github.com/users/AngelkPetkov/following{/other_user}","gists_url":"https://api.github.com/users/AngelkPetkov/gists{/gist_id}","starred_url":"https://api.github.com/users/AngelkPetkov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AngelkPetkov/subscriptions","organizations_url":"https://api.github.com/users/AngelkPetkov/orgs","repos_url":"https://api.github.com/users/AngelkPetkov/repos","events_url":"https://api.github.com/users/AngelkPetkov/events{/privacy}","received_events_url":"https://api.github.com/users/AngelkPetkov/received_events","type":"User","site_admin":false},"body":"[JIRA](https://jira.appcelerator.org/browse/TIMOB-6305) \r\nAdding Support for UIStepper","created_at":"2016-03-24T20:32:36Z","updated_at":"2016-03-28T22:32:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9f37e0702edb3dea185ca93de3c13add1aa7577e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/appcelerator/titanium_mobile/pulls/7881/commits","review_comments_url":"https://api.github.com/repos/appcelerator/titanium_mobile/pulls/7881/comments","review_comment_url":"https://api.github.com/repos/appcelerator/titanium_mobile/pulls/comments{/number}","comments_url":"https://api.github.com/repos/appcelerator/titanium_mobile/issues/7881/comments","statuses_url":"https://api.github.com/repos/appcelerator/titanium_mobile/statuses/3ef6a00e80dc79ed8375e3055c6f797fd2a0254b","head":{"label":"AngelkPetkov:TIMOB-6305","ref":"TIMOB-6305","sha":"3ef6a00e80dc79ed8375e3055c6f797fd2a0254b","user":{"login":"AngelkPetkov","id":14097072,"avatar_url":"https://avatars.githubusercontent.com/u/14097072?v=3","gravatar_id":"","url":"https://api.github.com/users/AngelkPetkov","html_url":"https://github.com/AngelkPetkov","followers_url":"https://api.github.com/users/AngelkPetkov/followers","following_url":"https://api.github.com/users/AngelkPetkov/following{/other_user}","gists_url":"https://api.github.com/users/AngelkPetkov/gists{/gist_id}","starred_url":"https://api.github.com/users/AngelkPetkov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AngelkPetkov/subscriptions","organizations_url":"https://api.github.com/users/AngelkPetkov/orgs","repos_url":"https://api.github.com/users/AngelkPetkov/repos","events_url":"https://api.github.com/users/AngelkPetkov/events{/privacy}","received_events_url":"https://api.github.com/users/AngelkPetkov/received_events","type":"User","site_admin":false},"repo":{"id":42147776,"name":"titanium_mobile","full_name":"AngelkPetkov/titanium_mobile","owner":{"login":"AngelkPetkov","id":14097072,"avatar_url":"https://avatars.githubusercontent.com/u/14097072?v=3","gravatar_id":"","url":"https://api.github.com/users/AngelkPetkov","html_url":"https://github.com/AngelkPetkov","followers_url":"https://api.github.com/users/AngelkPetkov/followers","following_url":"https://api.github.com/users/AngelkPetkov/following{/other_user}","gists_url":"https://api.github.com/users/AngelkPetkov/gists{/gist_id}","starred_url":"https://api.github.com/users/AngelkPetkov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AngelkPetkov/subscriptions","organizations_url":"https://api.github.com/users/AngelkPetkov/orgs","repos_url":"https://api.github.com/users/AngelkPetkov/repos","events_url":"https://api.github.com/users/AngelkPetkov/events{/privacy}","received_events_url":"https://api.github.com/users/AngelkPetkov/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/AngelkPetkov/titanium_mobile","description":"Appcelerator Titanium Mobile","fork":true,"url":"https://api.github.com/repos/AngelkPetkov/titanium_mobile","forks_url":"https://api.github.com/repos/AngelkPetkov/titanium_mobile/forks","keys_url":"https://api.github.com/repos/AngelkPetkov/titanium_mobile/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AngelkPetkov/titanium_mobile/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AngelkPetkov/titanium_mobile/teams","hooks_url":"https://api.github.com/repos/AngelkPetkov/titanium_mobile/hooks","issue_events_url":"https://api.github.com/repos/AngelkPetkov/titanium_mobile/issues/events{/number}","events_url":"https://api.github.com/repos/AngelkPetkov/titanium_mobile/events","assignees_url":"https://api.github.com/repos/AngelkPetkov/titanium_mobile/assignees{/user}","branches_url":"https://api.github.com/repos/AngelkPetkov/titanium_mobile/branches{/branch}","tags_url":"https://api.github.com/repos/AngelkPetkov/titanium_mobile/tags","blobs_url":"https://api.github.com/repos/AngelkPetkov/titanium_mobile/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AngelkPetkov/titanium_mobile/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AngelkPetkov/titanium_mobile/git/refs{/sha}","trees_url":"https://api.github.com/repos/AngelkPetkov/titanium_mobile/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AngelkPetkov/titanium_mobile/statuses/{sha}","languages_url":"https://api.github.com/repos/AngelkPetkov/titanium_mobile/languages","stargazers_url":"https://api.github.com/repos/AngelkPetkov/titanium_mobile/stargazers","contributors_url":"https://api.github.com/repos/AngelkPetkov/titanium_mobile/contributors","subscribers_url":"https://api.github.com/repos/AngelkPetkov/titanium_mobile/subscribers","subscription_url":"https://api.github.com/repos/AngelkPetkov/titanium_mobile/subscription","commits_url":"https://api.github.com/repos/AngelkPetkov/titanium_mobile/commits{/sha}","git_commits_url":"https://api.github.com/repos/AngelkPetkov/titanium_mobile/git/commits{/sha}","comments_url":"https://api.github.com/repos/AngelkPetkov/titanium_mobile/comments{/number}","issue_comment_url":"https://api.github.com/repos/AngelkPetkov/titanium_mobile/issues/comments{/number}","contents_url":"https://api.github.com/repos/AngelkPetkov/titanium_mobile/contents/{+path}","compare_url":"https://api.github.com/repos/AngelkPetkov/titanium_mobile/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AngelkPetkov/titanium_mobile/merges","archive_url":"https://api.github.com/repos/AngelkPetkov/titanium_mobile/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AngelkPetkov/titanium_mobile/downloads","issues_url":"https://api.github.com/repos/AngelkPetkov/titanium_mobile/issues{/number}","pulls_url":"https://api.github.com/repos/AngelkPetkov/titanium_mobile/pulls{/number}","milestones_url":"https://api.github.com/repos/AngelkPetkov/titanium_mobile/milestones{/number}","notifications_url":"https://api.github.com/repos/AngelkPetkov/titanium_mobile/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AngelkPetkov/titanium_mobile/labels{/name}","releases_url":"https://api.github.com/repos/AngelkPetkov/titanium_mobile/releases{/id}","deployments_url":"https://api.github.com/repos/AngelkPetkov/titanium_mobile/deployments","created_at":"2015-09-09T01:05:07Z","updated_at":"2016-02-17T17:47:46Z","pushed_at":"2016-03-28T17:48:28Z","git_url":"git://github.com/AngelkPetkov/titanium_mobile.git","ssh_url":"git@github.com:AngelkPetkov/titanium_mobile.git","clone_url":"https://github.com/AngelkPetkov/titanium_mobile.git","svn_url":"https://github.com/AngelkPetkov/titanium_mobile","homepage":"http://www.appcelerator.com","size":980523,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"appcelerator:master","ref":"master","sha":"af7ca02d5b09f9fe684c8139f05ed4705dc9a91f","user":{"login":"appcelerator","id":82188,"avatar_url":"https://avatars.githubusercontent.com/u/82188?v=3","gravatar_id":"","url":"https://api.github.com/users/appcelerator","html_url":"https://github.com/appcelerator","followers_url":"https://api.github.com/users/appcelerator/followers","following_url":"https://api.github.com/users/appcelerator/following{/other_user}","gists_url":"https://api.github.com/users/appcelerator/gists{/gist_id}","starred_url":"https://api.github.com/users/appcelerator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/appcelerator/subscriptions","organizations_url":"https://api.github.com/users/appcelerator/orgs","repos_url":"https://api.github.com/users/appcelerator/repos","events_url":"https://api.github.com/users/appcelerator/events{/privacy}","received_events_url":"https://api.github.com/users/appcelerator/received_events","type":"Organization","site_admin":false},"repo":{"id":228094,"name":"titanium_mobile","full_name":"appcelerator/titanium_mobile","owner":{"login":"appcelerator","id":82188,"avatar_url":"https://avatars.githubusercontent.com/u/82188?v=3","gravatar_id":"","url":"https://api.github.com/users/appcelerator","html_url":"https://github.com/appcelerator","followers_url":"https://api.github.com/users/appcelerator/followers","following_url":"https://api.github.com/users/appcelerator/following{/other_user}","gists_url":"https://api.github.com/users/appcelerator/gists{/gist_id}","starred_url":"https://api.github.com/users/appcelerator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/appcelerator/subscriptions","organizations_url":"https://api.github.com/users/appcelerator/orgs","repos_url":"https://api.github.com/users/appcelerator/repos","events_url":"https://api.github.com/users/appcelerator/events{/privacy}","received_events_url":"https://api.github.com/users/appcelerator/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/appcelerator/titanium_mobile","description":"Appcelerator Titanium Mobile","fork":false,"url":"https://api.github.com/repos/appcelerator/titanium_mobile","forks_url":"https://api.github.com/repos/appcelerator/titanium_mobile/forks","keys_url":"https://api.github.com/repos/appcelerator/titanium_mobile/keys{/key_id}","collaborators_url":"https://api.github.com/repos/appcelerator/titanium_mobile/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/appcelerator/titanium_mobile/teams","hooks_url":"https://api.github.com/repos/appcelerator/titanium_mobile/hooks","issue_events_url":"https://api.github.com/repos/appcelerator/titanium_mobile/issues/events{/number}","events_url":"https://api.github.com/repos/appcelerator/titanium_mobile/events","assignees_url":"https://api.github.com/repos/appcelerator/titanium_mobile/assignees{/user}","branches_url":"https://api.github.com/repos/appcelerator/titanium_mobile/branches{/branch}","tags_url":"https://api.github.com/repos/appcelerator/titanium_mobile/tags","blobs_url":"https://api.github.com/repos/appcelerator/titanium_mobile/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/appcelerator/titanium_mobile/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/appcelerator/titanium_mobile/git/refs{/sha}","trees_url":"https://api.github.com/repos/appcelerator/titanium_mobile/git/trees{/sha}","statuses_url":"https://api.github.com/repos/appcelerator/titanium_mobile/statuses/{sha}","languages_url":"https://api.github.com/repos/appcelerator/titanium_mobile/languages","stargazers_url":"https://api.github.com/repos/appcelerator/titanium_mobile/stargazers","contributors_url":"https://api.github.com/repos/appcelerator/titanium_mobile/contributors","subscribers_url":"https://api.github.com/repos/appcelerator/titanium_mobile/subscribers","subscription_url":"https://api.github.com/repos/appcelerator/titanium_mobile/subscription","commits_url":"https://api.github.com/repos/appcelerator/titanium_mobile/commits{/sha}","git_commits_url":"https://api.github.com/repos/appcelerator/titanium_mobile/git/commits{/sha}","comments_url":"https://api.github.com/repos/appcelerator/titanium_mobile/comments{/number}","issue_comment_url":"https://api.github.com/repos/appcelerator/titanium_mobile/issues/comments{/number}","contents_url":"https://api.github.com/repos/appcelerator/titanium_mobile/contents/{+path}","compare_url":"https://api.github.com/repos/appcelerator/titanium_mobile/compare/{base}...{head}","merges_url":"https://api.github.com/repos/appcelerator/titanium_mobile/merges","archive_url":"https://api.github.com/repos/appcelerator/titanium_mobile/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/appcelerator/titanium_mobile/downloads","issues_url":"https://api.github.com/repos/appcelerator/titanium_mobile/issues{/number}","pulls_url":"https://api.github.com/repos/appcelerator/titanium_mobile/pulls{/number}","milestones_url":"https://api.github.com/repos/appcelerator/titanium_mobile/milestones{/number}","notifications_url":"https://api.github.com/repos/appcelerator/titanium_mobile/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/appcelerator/titanium_mobile/labels{/name}","releases_url":"https://api.github.com/repos/appcelerator/titanium_mobile/releases{/id}","deployments_url":"https://api.github.com/repos/appcelerator/titanium_mobile/deployments","created_at":"2009-06-15T22:54:37Z","updated_at":"2016-03-28T03:05:37Z","pushed_at":"2016-03-28T21:31:31Z","git_url":"git://github.com/appcelerator/titanium_mobile.git","ssh_url":"git@github.com:appcelerator/titanium_mobile.git","clone_url":"https://github.com/appcelerator/titanium_mobile.git","svn_url":"https://github.com/appcelerator/titanium_mobile","homepage":"http://www.appcelerator.com","size":1095728,"stargazers_count":2058,"watchers_count":2058,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1090,"mirror_url":null,"open_issues_count":30,"forks":1090,"open_issues":30,"watchers":2058,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/appcelerator/titanium_mobile/pulls/7881"},"html":{"href":"https://github.com/appcelerator/titanium_mobile/pull/7881"},"issue":{"href":"https://api.github.com/repos/appcelerator/titanium_mobile/issues/7881"},"comments":{"href":"https://api.github.com/repos/appcelerator/titanium_mobile/issues/7881/comments"},"review_comments":{"href":"https://api.github.com/repos/appcelerator/titanium_mobile/pulls/7881/comments"},"review_comment":{"href":"https://api.github.com/repos/appcelerator/titanium_mobile/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/appcelerator/titanium_mobile/pulls/7881/commits"},"statuses":{"href":"https://api.github.com/repos/appcelerator/titanium_mobile/statuses/3ef6a00e80dc79ed8375e3055c6f797fd2a0254b"}}}}