【问题标题】:How to stop MeteorJs to scroll to top of page when template re rendered重新渲染模板时如何阻止 MeteorJs 滚动到页面顶部
【发布时间】:2014-08-13 18:22:49
【问题描述】:

问题说明了一切。我正在使用来自 Meteropedia http://www.meteorpedia.com/read/Infinite_Scrolling 的无限滚动示例,但是当我向下滚动以将更多文档从集合加载到页面移动到顶部时。我已经尝试过这个解决方案How to prevent content from scrolling when Meteor updates the collection,但仍然面临同样的问题。请帮我解决这个问题。

【问题讨论】:

    标签: meteor meteor-blaze


    【解决方案1】:

    这听起来像是您使用的是铁路由器,不幸的是,由于它在 Discover Meteor 书中的表现而引起了一些关注,但不幸的是由于一个未解决的错误而引起了一些关注。

    这个SO question其实也问了同样的问题,更多信息可以在发现流星书的github issuesfurther discussion here中找到

    基本上,你需要恢复到meteor 0.8.2和iron router 0.7.0

    【讨论】:

      猜你喜欢
      • 2015-08-02
      • 1970-01-01
      • 1970-01-01
      • 2013-09-26
      • 2016-01-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多