Reset preview scroll position when post item is clicked

When scrolling through the preview of a long article, if the post was changed the scroll position of the preview would remain the same.

![ghostpreview](https://cloud.githubusercontent.com/assets/846587/3964791/7eb248d2-278d-11e4-80ce-6da126080df5.gif)

My guess is, it would attach to every element, and I'm A-OK with that.
We're using a framework for a reason, let's put its tools to use and keep
the code consistent


On Tue, Aug 19, 2014 at 10:21 AM, Robert Rhoades <notifications@github.com>
wrote:

> In core/client/views/posts.js:
>
> > @@ -15,6 +15,11 @@ var PostsView = Ember.View.extend({
> >                  }
> >              });
> >
> > +            // ### Reset the content preview scroll when post item is clicked
> > +            $('.manage').on('click', '.content-list ol li', function () {
> > +                self.send('resetPreviewScrollPosition');
>
> Ah wrong end of the stick, thanks for clarifying :)
>
> That's a good shout, I've moved it in 506e44a
> <https://github.com/TryGhost/Ghost/commit/506e44a63fe9763e9669e722821be468a8445eb1>.
> My worry with this method is does ember attach to every element or use
> event delegation?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/TryGhost/Ghost/pull/3819/files#r16425563>.
>