ant-design Table with virtual={true} doesn't register scroll of the page in Firefox browser

eni9jsuy  于 3个月前  发布在  其他
关注(0)|答案(8)|浏览(35)

https://codepen.io/sc4lr/pen/yLWPgpm

Steps to reproduce

  1. Open reproduction link in Firefox browser
  2. Scroll to the very bottom of the page so there's a area that can be scrolled to the top
  3. Put a cursor into a table (hover the only one row)
  4. Try to scroll to the top

What is expected?

Page is being scrolled.

What is actually happening?

Page is not being scrolled. Body scroll isn't registered at all when cursor inside virtual table.
| Environment | Info |
| ------------ | ------------ |
| antd | 5.18.1 |
| React | 18.3.1 |
| System | MacOS Sonoma 14.5 |
| Browser | Firefox 127.0 (64-bit) |

I tried to scroll only with mac touchpad. Don't know if there's such problem with mouse scroll.

Could reproduce this only in Firefox. There's no such bug in Google Chrome or Safari

cbeh67ev

cbeh67ev1#

@MadCcc Hi! Could you tell me what else is required to be provided to remove unconfirmed tag?
And is there any news or parts to look at in this bug?

Thanks!

cqoc49vn

cqoc49vn2#

@MadCcc
Hi! Is there any news about this issue? This bug seems really annoying for FF users

Thanks!

wgeznvg7

wgeznvg74#

Could you provide a screen record video? I can't see the problem.

3lxsmp7m

3lxsmp7m5#

@afc163
Screen record won't help here very much because it won't show anything. But I attached it anyway.

Please, repeat reproduction steps that I mentioned above. Make sure that body has a scroll bar. Minimize your window if it doesn't. Put your cursor into the only one row of the table (not header). Use Firefox browser. Try to scroll the page.

The expected behavior is that the page is being scrolled once there's no area to scroll in table

Firefox (where bug occurs) is on the left side and Google Chrome (where everything works fine) is on the right side of the video.
Screen.Recording.2024-07-31.at.7.02.22.PM.mov

dhxwm5r4

dhxwm5r46#

I see the problem now, thx for video~

2ekbmq32

2ekbmq327#

Could you remove unconfirmed label at least please?

z4bn682m

z4bn682m8#

Hello @sc4lr. We totally like your proposal/feedback, welcome to send us a Pull Request for it. Please send your Pull Request to proper branch (feature branch for the new feature, master for bugfix and other changes), fill the Pull Request Template here, provide changelog/TypeScript/documentation/test cases if needed and make sure CI passed, we will review it soon. We appreciate your effort in advance and looking forward to your contribution!

你好 @sc4lr,我们完全同意你的提议/反馈,欢迎直接在此仓库 创建一个 Pull Request 来解决这个问题。请将 Pull Request 发到正确的分支(新特性发到 feature 分支,其他发到 master 分支),务必填写 Pull Request 内的 预设模板 ,提供改动所需相应的 changelog、TypeScript 定义、测试用例、文档等,并确保 CI 通过,我们会尽快进行 Review,提前感谢和期待您的贡献。

相关问题