{"action":"created","issue":{"url":"https://api.github.com/repos/mindz-eye/MYTableViewIndex/issues/2","repository_url":"https://api.github.com/repos/mindz-eye/MYTableViewIndex","labels_url":"https://api.github.com/repos/mindz-eye/MYTableViewIndex/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/mindz-eye/MYTableViewIndex/issues/2/comments","events_url":"https://api.github.com/repos/mindz-eye/MYTableViewIndex/issues/2/events","html_url":"https://github.com/mindz-eye/MYTableViewIndex/issues/2","id":172984016,"number":2,"title":"Touches moves not detected","user":{"login":"CKzu","id":6665539,"avatar_url":"https://avatars.githubusercontent.com/u/6665539?v=3","gravatar_id":"","url":"https://api.github.com/users/CKzu","html_url":"https://github.com/CKzu","followers_url":"https://api.github.com/users/CKzu/followers","following_url":"https://api.github.com/users/CKzu/following{/other_user}","gists_url":"https://api.github.com/users/CKzu/gists{/gist_id}","starred_url":"https://api.github.com/users/CKzu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CKzu/subscriptions","organizations_url":"https://api.github.com/users/CKzu/orgs","repos_url":"https://api.github.com/users/CKzu/repos","events_url":"https://api.github.com/users/CKzu/events{/privacy}","received_events_url":"https://api.github.com/users/CKzu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-24T15:28:23Z","updated_at":"2016-08-25T08:06:01Z","closed_at":null,"body":"Hi and thank you for the great job on that library,\r\n\r\nI'm having an issue with what should be a default behavior of the index: \r\n\r\nWhen I tap an item, `tableViewIndex(tableViewIndex, didSelectItem, atIndex)` is called, but not if I swipe through the index bar. It seems like `touchesBegan` is called, but not `touchesMoved`.\r\n\r\nMost of my code is copied from the demo example which works perfectly fine, so I don't really know where to investigate.\r\n\r\nDo you by any chance have an idea of what causes the issue?\r\n\r\nLet me know if you need more info\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/mindz-eye/MYTableViewIndex/issues/comments/242310778","html_url":"https://github.com/mindz-eye/MYTableViewIndex/issues/2#issuecomment-242310778","issue_url":"https://api.github.com/repos/mindz-eye/MYTableViewIndex/issues/2","id":242310778,"user":{"login":"CKzu","id":6665539,"avatar_url":"https://avatars.githubusercontent.com/u/6665539?v=3","gravatar_id":"","url":"https://api.github.com/users/CKzu","html_url":"https://github.com/CKzu","followers_url":"https://api.github.com/users/CKzu/followers","following_url":"https://api.github.com/users/CKzu/following{/other_user}","gists_url":"https://api.github.com/users/CKzu/gists{/gist_id}","starred_url":"https://api.github.com/users/CKzu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CKzu/subscriptions","organizations_url":"https://api.github.com/users/CKzu/orgs","repos_url":"https://api.github.com/users/CKzu/repos","events_url":"https://api.github.com/users/CKzu/events{/privacy}","received_events_url":"https://api.github.com/users/CKzu/received_events","type":"User","site_admin":false},"created_at":"2016-08-25T08:06:01Z","updated_at":"2016-08-25T08:06:01Z","body":"Here's how I'm configuring the index :\r\n\r\n```\r\ntableViewIndexController = TableViewIndexController(tableView: homeTableView)\r\n        tableViewIndexController.tableViewIndex.delegate = self\r\n        tableViewIndexController.tableViewIndex.dataSource = self\r\n\r\n        tableViewIndexController.tableViewIndex.backgroundView?.backgroundColor = UIColor.clearColor()\r\n        tableViewIndexController.tableViewIndex.font = UIFont(name: \"HelveticaNeue-Medium\", size: 11)\r\n        tableViewIndexController.tableViewIndex.tintColor = UIColor.darkGrayColor()\r\n\r\n        tableViewIndexController.tableViewIndex.indexInset = UIEdgeInsets(top: 3, left: 5, bottom: 3, right: 5)\r\n        tableViewIndexController.layouter = { homeTableView, tableIndex in\r\n            var frame = tableIndex.frame\r\n            frame = self.indexView.frame\r\n            tableIndex.frame = frame\r\n        }\r\n```\r\n\r\nwhere `self.indexView` is a view I set up in IB to have a frame set with Autolayout.\r\n\r\n`homeTableView` is my table view, which is contained in a `UIViewController`.\r\n\r\n`didSelectItem` method is basically the same as the one you have in your example code:\r\n\r\n```\r\nfunc tableViewIndex(tableViewIndex: TableViewIndex, didSelectItem item: UIView, atIndex index: Int) {\r\n        let sectionIndex = self.mapIndexItemToSection(item, index: index)\r\n        if sectionIndex != NSNotFound {\r\n            let sections = homeTableView.numberOfSections\r\n            let indexPath = NSIndexPath(forRow: NSNotFound, inSection: sectionIndex >= sections ? sections - 1 : sectionIndex)\r\n            homeTableView.scrollToRowAtIndexPath(indexPath, atScrollPosition: .Top, animated: false)\r\n        } else {\r\n            homeTableView.scrollToRowAtIndexPath(NSIndexPath(forRow: 0, inSection: 0), atScrollPosition: .Top, animated: false)\r\n        }\r\n    }\r\n```"}}
{"actor":{"display_login":"CKzu"}}