{"action":"created","issue":{"url":"https://api.github.com/repos/mattbryson/TouchSwipe-Jquery-Plugin/issues/263","labels_url":"https://api.github.com/repos/mattbryson/TouchSwipe-Jquery-Plugin/issues/263/labels{/name}","comments_url":"https://api.github.com/repos/mattbryson/TouchSwipe-Jquery-Plugin/issues/263/comments","events_url":"https://api.github.com/repos/mattbryson/TouchSwipe-Jquery-Plugin/issues/263/events","html_url":"https://github.com/mattbryson/TouchSwipe-Jquery-Plugin/issues/263","id":113081937,"number":263,"title":"pageX and pageY in event object is not work","user":{"login":"yinhaibo","id":8294580,"avatar_url":"https://avatars.githubusercontent.com/u/8294580?v=3","gravatar_id":"","url":"https://api.github.com/users/yinhaibo","html_url":"https://github.com/yinhaibo","followers_url":"https://api.github.com/users/yinhaibo/followers","following_url":"https://api.github.com/users/yinhaibo/following{/other_user}","gists_url":"https://api.github.com/users/yinhaibo/gists{/gist_id}","starred_url":"https://api.github.com/users/yinhaibo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yinhaibo/subscriptions","organizations_url":"https://api.github.com/users/yinhaibo/orgs","repos_url":"https://api.github.com/users/yinhaibo/repos","events_url":"https://api.github.com/users/yinhaibo/events{/privacy}","received_events_url":"https://api.github.com/users/yinhaibo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-23T19:08:59Z","updated_at":"2015-12-18T22:55:17Z","closed_at":null,"body":"version:1.6.12\r\nI found a bug in android device while using this plugin, and I try to fixed it.\r\n(https://github.com/mattbryson/TouchSwipe-Jquery-Plugin/blob/master/jquery.touchSwipe.js#1053)\r\nI found the event(a jQueryEvent object)'s pageX and pageY properties is not work(It will be 0 or a negative value) for some android device, It work well in safari and iOS, and I found the jQueryEvent has a touches array properties, and touchEvent object has a correct pageX and pageY value.\r\n\r\nSo, I make some change to my code, and I hope someone to fixed it professionally.\r\n```\r\nif (event.pageX <= 0 || event.pageY <= 0){\r\n\tvar evt = event.touches ? event.touches[0] : event;\r\n\tif (evt != undefined){\r\n\t\tevent = evt;\r\n\t}\r\n}\r\n```\r\nI just to replace the event object using Touch event instead of jQueryEvent."},"comment":{"url":"https://api.github.com/repos/mattbryson/TouchSwipe-Jquery-Plugin/issues/comments/165915358","html_url":"https://github.com/mattbryson/TouchSwipe-Jquery-Plugin/issues/263#issuecomment-165915358","issue_url":"https://api.github.com/repos/mattbryson/TouchSwipe-Jquery-Plugin/issues/263","id":165915358,"user":{"login":"mattbryson","id":548948,"avatar_url":"https://avatars.githubusercontent.com/u/548948?v=3","gravatar_id":"","url":"https://api.github.com/users/mattbryson","html_url":"https://github.com/mattbryson","followers_url":"https://api.github.com/users/mattbryson/followers","following_url":"https://api.github.com/users/mattbryson/following{/other_user}","gists_url":"https://api.github.com/users/mattbryson/gists{/gist_id}","starred_url":"https://api.github.com/users/mattbryson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattbryson/subscriptions","organizations_url":"https://api.github.com/users/mattbryson/orgs","repos_url":"https://api.github.com/users/mattbryson/repos","events_url":"https://api.github.com/users/mattbryson/events{/privacy}","received_events_url":"https://api.github.com/users/mattbryson/received_events","type":"User","site_admin":false},"created_at":"2015-12-18T22:55:17Z","updated_at":"2015-12-18T22:55:17Z","body":"Where abouts are you adding this?  The event object is already normalised with `event.touches ? event.touches[0] : event`  before it checks the pageX and pageY, so not sue where its getting a 0 value..."}}