Permalink
Browse files

$apply inside seek so it's snappy

  • Loading branch information...
brandly committed Mar 6, 2014
1 parent 2259c95 commit bcfd5d177ff6b61e703ffbe2caa0e475c93643c6
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/scripts/directives/seek.coffee
@@ -7,6 +7,7 @@ angular.module('sc2.directives')
x = e.offsetX or e.layerX
progress = x / e.target?.offsetWidth
if progress
- scope.player.seek progress
+ scope.$apply ->
+ scope.player.seek progress
}
])

0 comments on commit bcfd5d1

Please sign in to comment.