We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
1.2.3
No response
<t-pull-down-refresh value="{{enable}}" bind:scroll="onScroll" > </t-pull-down-refresh>
bindscroll="onScroll" 检测滚动距离
onScroll(e) { console.log('滚动距离:'+e.detail) }, "disableScroll": true,
在快速滑动的情况下,明明已经到顶了但是scrollTop还显示为10~100, 缓慢滑动没有问题,但是快速滚动的时候scrollTop会出现非常大的误差。
### 先说我的解决方法
因为每次滚动监听事件都会被调用比较耗费资源系统会默认节流可以在scroll-view 加一个 throttle=“{{false}}” 关闭节流 来源:微信小程序scroll-view滚动scrollTop不准确
返回准确scrollTop位置,让我实现动态为Navbar导航栏设置背景颜色
onScroll(e) { let opacity = e.detail / 140 opacity = opacity > 1 ? 1 : opacity this.setData({ opacity : opacity }) },
<view style="opacity: {{opacity}};"></view>
pull request
The text was updated successfully, but these errors were encountered:
👋 @KwongSum,感谢给 TDesign 提出了 issue。 请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。
Sorry, something went wrong.
@KwongSum 感谢反馈,下个版本带上。 另外,我这边看到你已经查阅有了解决方案,要不要来个🤣,一起共建🏹呢~
Successfully merging a pull request may close this issue.
tdesign-miniprogram 版本
1.2.3
重现链接
No response
重现步骤
bindscroll="onScroll" 检测滚动距离
在快速滑动的情况下,明明已经到顶了但是scrollTop还显示为10~100,
缓慢滑动没有问题,但是快速滚动的时候scrollTop会出现非常大的误差。
### 先说我的解决方法
因为每次滚动监听事件都会被调用比较耗费资源系统会默认节流可以在scroll-view 加一个 throttle=“{{false}}” 关闭节流
来源:微信小程序scroll-view滚动scrollTop不准确
期望结果
返回准确scrollTop位置,让我实现动态为Navbar导航栏设置背景颜色
IssueShoot
pull request
并合并为准The text was updated successfully, but these errors were encountered: