{"action":"created","issue":{"url":"https://api.github.com/repos/flesler/jquery.scrollTo/issues/124","labels_url":"https://api.github.com/repos/flesler/jquery.scrollTo/issues/124/labels{/name}","comments_url":"https://api.github.com/repos/flesler/jquery.scrollTo/issues/124/comments","events_url":"https://api.github.com/repos/flesler/jquery.scrollTo/issues/124/events","html_url":"https://github.com/flesler/jquery.scrollTo/issues/124","id":115770324,"number":124,"title":"How to scroll to a target element but only if the direction is down?","user":{"login":"u01jmg3","id":1266205,"avatar_url":"https://avatars.githubusercontent.com/u/1266205?v=3","gravatar_id":"","url":"https://api.github.com/users/u01jmg3","html_url":"https://github.com/u01jmg3","followers_url":"https://api.github.com/users/u01jmg3/followers","following_url":"https://api.github.com/users/u01jmg3/following{/other_user}","gists_url":"https://api.github.com/users/u01jmg3/gists{/gist_id}","starred_url":"https://api.github.com/users/u01jmg3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/u01jmg3/subscriptions","organizations_url":"https://api.github.com/users/u01jmg3/orgs","repos_url":"https://api.github.com/users/u01jmg3/repos","events_url":"https://api.github.com/users/u01jmg3/events{/privacy}","received_events_url":"https://api.github.com/users/u01jmg3/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-11-08T23:50:09Z","updated_at":"2015-11-09T14:58:12Z","closed_at":"2015-11-09T14:51:18Z","body":"- How can you scroll to a target element but only do this if the scroll direction is downwards?"},"comment":{"url":"https://api.github.com/repos/flesler/jquery.scrollTo/issues/comments/155086402","html_url":"https://github.com/flesler/jquery.scrollTo/issues/124#issuecomment-155086402","issue_url":"https://api.github.com/repos/flesler/jquery.scrollTo/issues/124","id":155086402,"user":{"login":"u01jmg3","id":1266205,"avatar_url":"https://avatars.githubusercontent.com/u/1266205?v=3","gravatar_id":"","url":"https://api.github.com/users/u01jmg3","html_url":"https://github.com/u01jmg3","followers_url":"https://api.github.com/users/u01jmg3/followers","following_url":"https://api.github.com/users/u01jmg3/following{/other_user}","gists_url":"https://api.github.com/users/u01jmg3/gists{/gist_id}","starred_url":"https://api.github.com/users/u01jmg3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/u01jmg3/subscriptions","organizations_url":"https://api.github.com/users/u01jmg3/orgs","repos_url":"https://api.github.com/users/u01jmg3/repos","events_url":"https://api.github.com/users/u01jmg3/events{/privacy}","received_events_url":"https://api.github.com/users/u01jmg3/received_events","type":"User","site_admin":false},"created_at":"2015-11-09T14:58:12Z","updated_at":"2015-11-09T14:58:12Z","body":"So far I have achieved this with the following but I wasn't sure whether I'd missed an option in your plugin which I why I opened this ticket:\r\n\r\n```js\r\nif($('.target').offset().top > $(window).scrollTop()){\r\n    // Action\r\n}\r\n```"}}