mirror of
https://github.com/discourse/discourse.git
synced 2024-11-28 03:33:58 -06:00
Performance fix, avoid expensive animations, they slow down scrolling
This commit is contained in:
parent
8e1469c7cc
commit
8c053b8e83
@ -40,11 +40,8 @@ Discourse.TopicView = Discourse.View.extend(Discourse.Scrolling, {
|
||||
bg.css("border-right-width", "1px");
|
||||
}
|
||||
|
||||
if (currentWidth === 0) {
|
||||
bg.width(progressWidth);
|
||||
} else {
|
||||
bg.animate({ width: progressWidth }, 400);
|
||||
}
|
||||
// Disable animation for now so it performs better
|
||||
bg.width(progressWidth);
|
||||
}.observes('progressPosition', 'topic.filtered_posts_count', 'topic.loaded'),
|
||||
|
||||
updateTitle: function() {
|
||||
|
Loading…
Reference in New Issue
Block a user