Skip to content

Commit

Permalink
Don't keep calling setActiveHighlights like crazy, on every flicker o…
Browse files Browse the repository at this point in the history
…f the mouse pointer. (Bind to mouseover, instead of mousemove.)
  • Loading branch information
csillag committed Aug 28, 2013
1 parent 7ce6f8d commit 6865825
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion h/js/controllers.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class App

elem.selectAll('.heatmap-pointer')
# Creates highlights corresponding bucket when mouse is hovered
.on 'mousemove', (bucket) =>
.on 'mouseover', (bucket) =>
unless $location.path() == '/viewer' and $location.search()?.id?
provider.notify
method: 'setActiveHighlights'
Expand Down

0 comments on commit 6865825

Please sign in to comment.