{"action":"created","issue":{"url":"https://api.github.com/repos/Prinzhorn/skrollr/issues/699","labels_url":"https://api.github.com/repos/Prinzhorn/skrollr/issues/699/labels{/name}","comments_url":"https://api.github.com/repos/Prinzhorn/skrollr/issues/699/comments","events_url":"https://api.github.com/repos/Prinzhorn/skrollr/issues/699/events","html_url":"https://github.com/Prinzhorn/skrollr/issues/699","id":63750908,"number":699,"title":"animateTo() triggers default scroll event","user":{"login":"qikkeronline","id":10937470,"avatar_url":"https://avatars.githubusercontent.com/u/10937470?v=3","gravatar_id":"","url":"https://api.github.com/users/qikkeronline","html_url":"https://github.com/qikkeronline","followers_url":"https://api.github.com/users/qikkeronline/followers","following_url":"https://api.github.com/users/qikkeronline/following{/other_user}","gists_url":"https://api.github.com/users/qikkeronline/gists{/gist_id}","starred_url":"https://api.github.com/users/qikkeronline/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qikkeronline/subscriptions","organizations_url":"https://api.github.com/users/qikkeronline/orgs","repos_url":"https://api.github.com/users/qikkeronline/repos","events_url":"https://api.github.com/users/qikkeronline/events{/privacy}","received_events_url":"https://api.github.com/users/qikkeronline/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-23T15:26:15Z","updated_at":"2015-04-09T20:07:54Z","closed_at":"2015-04-09T20:07:54Z","body":"Hi there, I have a small issue with isAnimatingTo(). I'd like to cancel it if the user scrolls manually (or clicks anywhere), but the animateTo() function also seems to trigger the default scroll event. Is there a way to get around this? An example of my code to scroll, and to cancel the scroll on click is below:\r\n\r\n    // init skrollr\r\n\ts = skrollr.init({\r\n\r\n\t\t// my options here\r\n\r\n\t});\r\n\r\n\t// Scroll to bottom link function\r\n\t$(document).on('click','a#tobottom', function(e) {\r\n\r\n\t\ts.animateTo(s.getMaxScrollTop(), {duration: s.getMaxScrollTop() - s.getScrollTop()});\r\n\t\treturn false;\r\n\t    \r\n\t});\r\n\r\n\t// Cancel scroll to bottom on click (todo: make this work on user triggered scroll)\r\n\t$(document).on('click', 'a.nav_primary_toggle, a.close_menu, .scroller', function(){\r\n\r\n\t\tif(s.isAnimatingTo()){\r\n\t\t\r\n\t\t\ts.stopAnimateTo();\r\n\r\n\t\t}\r\n\r\n\t});\r\n\r\nThanks for the help :+1: "},"comment":{"url":"https://api.github.com/repos/Prinzhorn/skrollr/issues/comments/91343383","html_url":"https://github.com/Prinzhorn/skrollr/issues/699#issuecomment-91343383","issue_url":"https://api.github.com/repos/Prinzhorn/skrollr/issues/699","id":91343383,"user":{"login":"qikkeronline","id":10937470,"avatar_url":"https://avatars.githubusercontent.com/u/10937470?v=3","gravatar_id":"","url":"https://api.github.com/users/qikkeronline","html_url":"https://github.com/qikkeronline","followers_url":"https://api.github.com/users/qikkeronline/followers","following_url":"https://api.github.com/users/qikkeronline/following{/other_user}","gists_url":"https://api.github.com/users/qikkeronline/gists{/gist_id}","starred_url":"https://api.github.com/users/qikkeronline/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qikkeronline/subscriptions","organizations_url":"https://api.github.com/users/qikkeronline/orgs","repos_url":"https://api.github.com/users/qikkeronline/repos","events_url":"https://api.github.com/users/qikkeronline/events{/privacy}","received_events_url":"https://api.github.com/users/qikkeronline/received_events","type":"User","site_admin":false},"created_at":"2015-04-09T20:07:54Z","updated_at":"2015-04-09T20:07:54Z","body":"Thanks, makes sense :+1: "}}