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

设置页滑动条的抖动 #13

Closed
electron-shaders opened this issue Mar 8, 2022 · 4 comments
Closed

设置页滑动条的抖动 #13

electron-shaders opened this issue Mar 8, 2022 · 4 comments
Labels
体验问题/Experience problems 此问题影响用户体验/This issue affects user experience 已修复/Fixed 此问题已经修复/This issue has been fixed

Comments

@electron-shaders
Copy link
Contributor

运行环境

  • 设备:Legion R9000P2021H

  • 设备平台: Windows10 20H2 64位

  • 浏览器:Microsoft Edge 99.0.1150.30

  • 错误现象: 在电脑端浏览器打开设置页面,用鼠标按住拖动滑动条会出现奇怪的抖动。(为节约导出性能,录屏时调小了窗口大小,实际上此bug与窗口大小无关,但与是否为移动端有关)

slide-issue.mp4
slide-issue-mobile.mp4
  • 错误Log:见录屏
@electron-shaders
Copy link
Contributor Author

此bug有一个细节是当鼠标划过并选中文字时,它得以暂时性地解决,但会在选中文字前后出现一个突变(具体见录屏1)

@yuameshi
Copy link
Owner

yuameshi commented Mar 8, 2022

根据地代码,我初步判断抖动问题的出现是因为频繁变动margin-left的值导致所以可能无法修复,但是根据我的测试,Microsoft Edge(Chromium)和Iceracen(FireFox)都未出现此现象,手机SoC是Mediatek MT6889Z,不排除是性能原因导致此错误的出现

@yuameshi yuameshi added 正在调查/Under investigation 正在调查此错误发生的原因/Investigating why this error occurred 体验问题/Experience problems 此问题影响用户体验/This issue affects user experience labels Mar 8, 2022
@yuameshi
Copy link
Owner

yuameshi commented Mar 9, 2022

而关于移动端方面,我的认为是浏览器的仿真一般都只会仿真界面分辨率和userAgent,同时点击变为触摸,所以我认为此问题与是否为移动端无关

@electron-shaders
Copy link
Contributor Author

log打印是因为offsetX的值不稳定的问题,改用移动端的公式就好了

yuameshi added a commit that referenced this issue Mar 9, 2022
@yuameshi yuameshi added 已修复/Fixed 此问题已经修复/This issue has been fixed and removed 正在调查/Under investigation 正在调查此错误发生的原因/Investigating why this error occurred labels Mar 9, 2022
@yuameshi yuameshi closed this as completed Mar 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
体验问题/Experience problems 此问题影响用户体验/This issue affects user experience 已修复/Fixed 此问题已经修复/This issue has been fixed
Projects
None yet
Development

No branches or pull requests

2 participants