Skip to content
This repository was archived by the owner on May 30, 2022. It is now read-only.

Commit

Permalink
fix(macScrollSpy): Scroll spy doesn't flicker when scrolling to last …
Browse files Browse the repository at this point in the history
…element.

Closes #132
  • Loading branch information
cjcenizal authored and adrianlee44 committed Oct 25, 2013
1 parent 6116172 commit 39ed95d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/directives/scroll_spy.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ angular.module("Mac").directive("macScrollSpy", [
return true unless scrollSpy.registered.length

# Select the last anchor when scrollTop is over maxScroll
if scrollTop >= maxScroll and scrollSpy.active.id isnt scrollSpy.last().id
if scrollTop >= maxScroll
return scrollSpy.setActive scrollSpy.last()

for i in [0..scrollSpy.registered.length - 1]
Expand Down

0 comments on commit 39ed95d

Please sign in to comment.