Javascript Framer/Coffeescript:如何防止在页面组件上倒退?

Javascript Framer/Coffeescript:如何防止在页面组件上倒退?,javascript,coffeescript,framerjs,Javascript,Coffeescript,Framerjs,我想这是一个特定于制宪者的问题。我有一个页面组件,我只希望你能够向前滑动,而不是向后滑动。最好的方法是什么?只要在页面更改后将其删除即可 page.onChange "currentPage", -> page.previousPage.destroy() page.currentPage.animate backgroundColor: "#FFF" options: time: 0.5

我想这是一个特定于制宪者的问题。我有一个页面组件,我只希望你能够向前滑动,而不是向后滑动。最好的方法是什么?

只要在页面更改后将其删除即可

page.onChange "currentPage", ->
    page.previousPage.destroy() 

    page.currentPage.animate 
        backgroundColor: "#FFF"
        options:
            time: 0.5