Permalink
Browse files

Fix "change:currentPage" firing on every click

  • Loading branch information...
Benjamin den Boer
Benjamin den Boer committed Apr 22, 2015
1 parent 4e182d7 commit 66eea9518266a6e8eec35bec841467cbf8fedda3
Showing with 1 addition and 0 deletions.
  1. +1 −0 framer/Components/PageComponent.coffee
@@ -62,6 +62,7 @@ class exports.PageComponent extends ScrollComponent
return _.first(layers)
snapToPage: (page, animate=true, animationOptions=null) ->
return unless @currentPage isnt page
@scrollToLayer(page, @originX, @originY, animate, animationOptions)
@_previousPages.push(page)
@emit("change:previousPage", @previousPage)

0 comments on commit 66eea95

Please sign in to comment.