Permalink
Browse files

Immediately refresh viewer for live-updates

Our applyUpdates() puts/deletes annotations into the viewer.
But for the stream page, because there was no scope digest cycle
it seemed that the UI was reacting very slow to show the annotations.

This one-liner just creates a digest cycle in these scenarios.
The user experience is a magnitude better with this in the stream page

Fix #1455
  • Loading branch information...
gergely-ujvari committed Aug 28, 2014
1 parent 1f8ac2f commit 25dcaefcd5373795da4f18f30be63d051149c138
Showing with 1 addition and 0 deletions.
  1. +1 −0 h/static/scripts/controllers.coffee
@@ -77,6 +77,7 @@ class App
$rootScope.annotations.push annotation if not inRootScope(annotation)
else
$rootScope.annotations.push annotation if not inRootScope(annotation)
$scope.$digest()
when 'update'
plugins.Store._onLoadAnnotations data

0 comments on commit 25dcaef

Please sign in to comment.