-
#1768 Description
[Description of the issue]
页面page中引入组件component写成弹框,组件可以滚动,滚动到底部以后,点击按钮想让其返回顶部。使用了wx.pageScrollTo({scrollTop: 0 })不起作用,利用scroll-view包起来,用scrollTop也不起作用,希望能给出建议
```
…
-
声明: 页面引用了jquery. 要获取滚动的距离
1: function qq(){console.log($(window).scrollTop())}
$(window).scroll(qq());
2: $(window).scroll(function (){console.log($(window).scrollTop())};
1 里面获取的距离只显示一次 滚动完 刷新后…
-
有时候用户需要手动控制scrollTop的情况
-
Problem description: When we have an area to scroll, it'd be good to account for this user event
Suggested solution: Add a scroll handler
-
第526天 写一个方法获取滚动条距离窗口顶部的距离
[3+1官网](http://www.h-camel.com/index.html)
[我也要出题](http://www.h-camel.com/contribution.html)
-
I've used js and css from another website
- js is linked in under top-button-scroll-fade.js
- button is styled as an id in css #scrollUp (main.css)
When clicked, the page will go to the top, which is…
-
Hi there.
I noticed that you are calculating element height based on `offsetTop` value which is relative to closes parent. That means when i put your parallax image into some content wrapper in the m…
-
506 line : `top=top+document.body.scrollTop`
is a bug.
delete it
-
Hi there,
there is a little issue with my setup.
```js
(function() {
$("#Liste")
.on("click", "tbody tr", function() {
var page = $(this).closest("tr").children().eq(0).text();
…
-
I am using the following code:
```jsx
componentDidMount() {
try {
this.webView.current.executeJavaScript("$('body, window').scrollTop(100)")
} catch (err) {
console.log("[DidMount]", err…