m-pull-to-refresh
m-pull-to-refresh copied to clipboard
React Mobile Pull To Refresh
When loading finished, the position will jump back to release position. And then show finished. So, the page will look like bouncing. It's only found in chrome. 
在使用overflow-x: scroll 左右滑动的时候,也可能会触发screenY的改变,会触发 transform 产生容器位移,会露出下拉箭头或文案 。 建议可支持添加一个可配置项,在小于某个位移量的时候,不触发transform。 const _diff = Math.round(_screenY - this._ScreenY); this._ScreenY = _screenY; this._lastScreenY += this.damping(_diff); this.setContentStyle(this._lastScreenY);
ref ant-design/ant-design-mobile#2059
``` ``` 我不知道在渲染children的时候为什么会包一层StaticRenderer 这样写会多触发运行一次MyList的 constuctor及render 将253,257行的renderChildren 替换为children,可行?
奇怪是哪里代码写错了么?总是check fail我就把我遇到的问题写下来吧 修改前效果: 触摸结束时,进入“release”状态,滚动容器停留在触摸结束时的滚动位置,当newprops.refreshing===false时,才reset 期望修改后的效果: 触摸结束后,进入“release”状态,滚动容器回弹至可容纳loading图标显示的位置,之后如前。
建议clearTimeout 一下 this._timer 我在使用的时候发现犹豫没有clearTimeout this._timer,造成 setState(...): Can only update a mounted or mounting component. This usually means you called setState() on an unmounted component. This is a no-op. Please check...