mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
Only animate sentiment drops when in feed view.
This commit is contained in:
parent
a27af90dce
commit
ab8cf11022
1 changed files with 1 additions and 2 deletions
|
@ -577,7 +577,7 @@
|
||||||
|
|
||||||
this.mark_story_title_as_selected($next_story_title);
|
this.mark_story_title_as_selected($next_story_title);
|
||||||
this.mark_story_as_read(story.id);
|
this.mark_story_as_read(story.id);
|
||||||
this.mark_story_as_read_in_feed_view(story, {'animate': true});
|
this.mark_story_as_read_in_feed_view(story, {'animate': this.story_view == 'feed'});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -594,7 +594,6 @@
|
||||||
_.delay(function() {
|
_.delay(function() {
|
||||||
$story.addClass('read');
|
$story.addClass('read');
|
||||||
var end = $feed_view.scrollTop();
|
var end = $feed_view.scrollTop();
|
||||||
// NEWSBLUR.log(['mark_story_as_read_in_feed_view', start, end, end-start, end-start>25]);
|
|
||||||
if (end - start > 25) {
|
if (end - start > 25) {
|
||||||
$('.NB-feed-story-sentiment-animate', $story).remove();
|
$('.NB-feed-story-sentiment-animate', $story).remove();
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Add table
Reference in a new issue