{"action":"created","issue":{"url":"https://api.github.com/repos/mattbryson/TouchSwipe-Jquery-Plugin/issues/128","labels_url":"https://api.github.com/repos/mattbryson/TouchSwipe-Jquery-Plugin/issues/128/labels{/name}","comments_url":"https://api.github.com/repos/mattbryson/TouchSwipe-Jquery-Plugin/issues/128/comments","events_url":"https://api.github.com/repos/mattbryson/TouchSwipe-Jquery-Plugin/issues/128/events","html_url":"https://github.com/mattbryson/TouchSwipe-Jquery-Plugin/issues/128","id":20252679,"number":128,"title":"Swipe should \"capture \" the mouse, i.e. listen to mousemove events on the window?","user":{"login":"Ziriax","id":2389359,"avatar_url":"https://avatars.githubusercontent.com/u/2389359?v=3","gravatar_id":"","url":"https://api.github.com/users/Ziriax","html_url":"https://github.com/Ziriax","followers_url":"https://api.github.com/users/Ziriax/followers","following_url":"https://api.github.com/users/Ziriax/following{/other_user}","gists_url":"https://api.github.com/users/Ziriax/gists{/gist_id}","starred_url":"https://api.github.com/users/Ziriax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ziriax/subscriptions","organizations_url":"https://api.github.com/users/Ziriax/orgs","repos_url":"https://api.github.com/users/Ziriax/repos","events_url":"https://api.github.com/users/Ziriax/events{/privacy}","received_events_url":"https://api.github.com/users/Ziriax/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2013-09-30T09:51:39Z","updated_at":"2015-12-19T14:43:03Z","closed_at":"2015-12-19T00:43:31Z","body":"Once swiping starts, mousemove and mouseup events should be observed on the window, not the element itself.\r\n\r\nOtherwise you cannot \"drag\" small DIV elements: as soon as the mouse leaves the DIV element, swiping breaks.\r\n\r\nhttp://jsfiddle.net/ydqvJ/5/\r\n\r\nGrab the red DIV, and quickly move the mouse. \r\n\r\nEven if the red DIV is not moved, swiping seems to stop when the mouse leaves the element.\r\n\r\n\r\n\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/mattbryson/TouchSwipe-Jquery-Plugin/issues/comments/165991876","html_url":"https://github.com/mattbryson/TouchSwipe-Jquery-Plugin/issues/128#issuecomment-165991876","issue_url":"https://api.github.com/repos/mattbryson/TouchSwipe-Jquery-Plugin/issues/128","id":165991876,"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-19T14:43:03Z","updated_at":"2015-12-19T14:43:03Z","body":"Sorry, I was clearing out a list of old and no longer relevant tickets so\nwe can focus on the main issues, and forgot to update this one.\n\nThe plugin already supports maintaing the swipe when the user leaves the\ntarget element, im not sure if this was the case when you raised the issue.\n\nThe swipe event is not completed / cancelled until the user releases, or\nreaches any of the thresholds that might be set.\n\nFor the swipe event to be cancelled when the user leaves the element you\ncan set the options 'triggerOnTouchEnd' and 'triggerOnTouchLeave'. See\nhttp://labs.rampinteractive.co.uk/touchSwipe/demos/Trigger_handlers.html\n\nAlso, this plugin isn't really suited for dragging, something like JQ\ndraggable would be more appropriate.  It's more concerned with movement\nacross elements.  If you need to position an element, you may have more\nluck having the swipe handler on a parent, and updating the child position\non swipe.\n\n\nCheers\n\n\nMatt\n\n\nM\n\nOn Sat, 19 Dec 2015 08:05 Peter Verswyvelen <notifications@github.com>\nwrote:\n\n> Could you maybe explain a bit why this issue was closed? Thanks\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/mattbryson/TouchSwipe-Jquery-Plugin/issues/128#issuecomment-165959747>\n> .\n>\n"}}