-
When using SizeMe, it leads to an `onScroll` event from the wrapped component with `scrollTop` set to the element height:
# Example I (SizeMe wraps the scrolled component)
``` javascript
import…
-
### What problem are you trying to solve?
When we need to frequently read some values from DOM Element, the browser will perform reflow, which is a very large performance consumption. For example…
-
当最后一个元素的高度比 Container 还高时,getOffset 的返回值会等于 list.length
```ts
const getOffset = (scrollTop: number) => {
if (isNumber(itemHeightRef.current)) {
return Math.floor(scrollTop / itemHeight…
-
Why is it not possible to work with the scroll position of a virtual list in this library?
I need to programmatically set scrollTop to a virtual list.
The option via this.$ref.scroll.$el.scrollTop…
-
I stumbled across a really weird problem - when using e-b-m, I can't get scrollTop for my app - it always returns 0!!
I don't know how that's related to e-b-m, but I do know that when I tried to re…
-
亲测部分android机型拖动多次会拖动不了,因为 ele.scrollHeight - ele.scrollTop === ele.clientHeight + 1,所以一直判断不为edge,上拉刷新不了,所以isEdge方法可以加一行代码兼容一下。
机型为:oppo A57
> 修改isEdge函数
isEdge(ele, direction) {
const contai…
-
### Is there an existing issue for this?
- [X] I have searched the existing issues
### Describe the bug
I'm using Blazor .NET 8 WASM
I'm planning to do listening of scroll bottom or specia…
-
Hi, when i paste text with keyboard in latest safari the page will be scrolled to top.
I used:
"froala-editor": "^2.9.6",
"react-froala-wysiwyg": "2.9.1",
in which version was fixed or can u g…
-
一直对ScrollTop、ScrollHeight、ClientHeight、OffsetHeight这些内容傻傻分不清楚,今天整体下。
## scrollHeight
scrollHeight含有`scroll`当然这个高度与滚动相关。
- 读写:只读
- 描述:包括overflow样式属性导致的视图中不可见内容,没有垂直滚动条的情况下,scrollHeight值与元素视图填充所有内容所需要的…
-
Don't know if it is a feature or a bug, but when scrollTop or scrollLeft is called on already scrolled window, it will reset value that was not changed.
For example:
``` javascript
window.scrollTo(1…