Fixing @afita's issue around weirdness in Feed story selection when story titles are pinned to top.

This commit is contained in:
Samuel Clay 2012-09-04 11:47:06 -07:00
parent 95326cc835
commit d3a65d2cc8

View file

@ -351,7 +351,7 @@ NEWSBLUR.Views.StoryListView = Backbone.View.extend({
!NEWSBLUR.assets.preference('feed_view_single_story')) {
var from_top = NEWSBLUR.reader.cache.mouse_position_y + this.$el.scrollTop();
var offset = this.cache.story_pane_position;
var position = from_top; // - offset;
var position = from_top - offset;
var positions = this.cache.feed_view_story_positions_keys;
var closest = $.closest(position, positions);
var story = this.cache.feed_view_story_positions[positions[closest]];