{"action":"created","issue":{"url":"https://api.github.com/repos/okgrow/iron-router-autoscroll/issues/2","labels_url":"https://api.github.com/repos/okgrow/iron-router-autoscroll/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/okgrow/iron-router-autoscroll/issues/2/comments","events_url":"https://api.github.com/repos/okgrow/iron-router-autoscroll/issues/2/events","html_url":"https://github.com/okgrow/iron-router-autoscroll/issues/2","id":56785034,"number":2,"title":"Invalidation Issue","user":{"login":"erasaur","id":8746334,"avatar_url":"https://avatars.githubusercontent.com/u/8746334?v=3","gravatar_id":"","url":"https://api.github.com/users/erasaur","html_url":"https://github.com/erasaur","followers_url":"https://api.github.com/users/erasaur/followers","following_url":"https://api.github.com/users/erasaur/following{/other_user}","gists_url":"https://api.github.com/users/erasaur/gists{/gist_id}","starred_url":"https://api.github.com/users/erasaur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erasaur/subscriptions","organizations_url":"https://api.github.com/users/erasaur/orgs","repos_url":"https://api.github.com/users/erasaur/repos","events_url":"https://api.github.com/users/erasaur/events{/privacy}","received_events_url":"https://api.github.com/users/erasaur/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-02-06T08:40:37Z","updated_at":"2015-02-19T22:42:52Z","closed_at":"2015-02-19T22:03:31Z","body":"If I scroll away from the hashed element and, say, load some more documents due to infinite scrolling, `onAfterAction` is invalidated and the scroll shoots back up to the hashed element. Perhaps if the hash has not changed, don't scroll twice to it?"},"comment":{"url":"https://api.github.com/repos/okgrow/iron-router-autoscroll/issues/comments/75154652","html_url":"https://github.com/okgrow/iron-router-autoscroll/issues/2#issuecomment-75154652","issue_url":"https://api.github.com/repos/okgrow/iron-router-autoscroll/issues/2","id":75154652,"user":{"login":"erasaur","id":8746334,"avatar_url":"https://avatars.githubusercontent.com/u/8746334?v=3","gravatar_id":"","url":"https://api.github.com/users/erasaur","html_url":"https://github.com/erasaur","followers_url":"https://api.github.com/users/erasaur/followers","following_url":"https://api.github.com/users/erasaur/following{/other_user}","gists_url":"https://api.github.com/users/erasaur/gists{/gist_id}","starred_url":"https://api.github.com/users/erasaur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erasaur/subscriptions","organizations_url":"https://api.github.com/users/erasaur/orgs","repos_url":"https://api.github.com/users/erasaur/repos","events_url":"https://api.github.com/users/erasaur/events{/privacy}","received_events_url":"https://api.github.com/users/erasaur/received_events","type":"User","site_admin":false},"created_at":"2015-02-19T22:42:52Z","updated_at":"2015-02-19T22:42:52Z","body":"I guess the reason I didn't suggest `onRun` is that `onAfterAction` has some added advantages. For one, `onRun` stops working after a hot-code reload, whereas `onAfterAction` doesn't. `onAfterAction` also works even if you're not routing to a new page, e.g scrolling to another hash on the same route after the original page load."}}