You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Set the height in the page div element, such as div {height: 500px; overflow y: auto;}, At this time, there is a lot of content that can be scrolled, but the page elements after scrolling are not displayed.However, if the browser comes with scrolling, it works normally
Steps to Reproduce the Problem
1
2
3
4
5
6
.ul {
height: 500px;
overflow-y: auto
li {
height: 100px
}
}
The browser can work normally when the scrollbar automatically appears. However, if a parent element is set to a height, it is not normal. This is because aos monitors scrolling
可以接受参数变成 :
It is acceptable to change the parameter to:
document.getElementById(id).addEventListener(options.startEvent, function() {
refresh(true);
});
The text was updated successfully, but these errors were encountered:
This is: Bug
Specifications
Expected Behavior
Actual Behavior
Steps to Reproduce the Problem
.ul {
height: 500px;
overflow-y: auto
li {
height: 100px
}
}
Detailed Description
Possible Solution
浏览器 自动出现滚动条的时候 是可以正常工作的,但是如果一个父元素设置了高度,就不正常, 是因为aos 监听滚动的时候使用了
document.addEventListener(options.startEvent, function() {
refresh(true);
});
window.addEventListener('load', function() {
refresh(true);
});
。
The browser can work normally when the scrollbar automatically appears. However, if a parent element is set to a height, it is not normal. This is because aos monitors scrolling
document.addEventListener(options.startEvent, function() {
refresh(true);
});
window.addEventListener('load', function() {
refresh(true);
});
。
可以接受参数变成 :
It is acceptable to change the parameter to:
document.getElementById(id).addEventListener(options.startEvent, function() {
refresh(true);
});
The text was updated successfully, but these errors were encountered: