Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

下拉容器中含有需要左右滑动的子元素,在左右滑动的时候,建议不触发transform 改变下拉容器的位移 #21

Open
mokouharu opened this issue Jul 31, 2018 · 0 comments

Comments

@mokouharu
Copy link

在使用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);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant