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

请教有关if (widthContained === widthScroll)判断的问题 #268

Open
Ray-56 opened this issue Aug 18, 2021 · 2 comments
Open

请教有关if (widthContained === widthScroll)判断的问题 #268

Ray-56 opened this issue Aug 18, 2021 · 2 comments

Comments

@Ray-56
Copy link

Ray-56 commented Aug 18, 2021

src/getScrollBarSize.tsx

...
if (widthContained === widthScroll) {
    widthScroll = outer.clientWidth;
}
...

的这个判断,按照上下文创建的 DOM 感觉不会触发呀,请教什么情况下会触发?

@yoyo837
Copy link
Member

yoyo837 commented Jul 22, 2022

mac 电脑没有滚动条时?

@Ray-56
Copy link
Author

Ray-56 commented Jul 24, 2022

mac 电脑没有滚动条时?

我记得当时我试过,把电脑的滚动条隐藏,貌似也不会触发

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