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

Error: NaN is an invalid value for the marginLeft css style property. #261

Closed
NameWjp opened this issue Mar 28, 2024 · 1 comment
Closed

Comments

@NameWjp
Copy link
Contributor

NameWjp commented Mar 28, 2024

复现地址:codesandbox

复现步骤:

  1. 鼠标放到虚拟滚动列表里
  2. 按住 shift 滚动滚轮
  3. 浏览器报错 Warning: NaN is an invalid value for the marginLeft css style property.

image

yoyo837 pushed a commit that referenced this issue Apr 5, 2024
* fix: adjust inVirtual logic(#227)

* feat: support detection size(#256)

* fix: check whether scrollWidth exist(#261)

* fix: fix maxScrollHeight negative

* test: add scrollbar thumb test

* fix: add annotation

---------

Co-authored-by: wangjinping <[email protected]>
@yoyo837
Copy link
Member

yoyo837 commented Apr 5, 2024

Fixed in #262

@yoyo837 yoyo837 closed this as completed Apr 5, 2024
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

2 participants