Sign in
Sign up
Explore
Enterprise
Education
Search
Help
Terms of use
About Us
Explore
Enterprise
Education
Gitee Premium
Gitee AI
AI teammates
Sign in
Sign up
Fetch the repository succeeded.
Open Source
>
Web System
>
BBS
&&
Donate
Please sign in before you donate.
Cancel
Sign in
Scan WeChat QR to Pay
Cancel
Complete
Prompt
Switch to Alipay.
OK
Cancel
Watch
Unwatch
Watching
Releases Only
Ignoring
902
Star
3.8K
Fork
1.5K
Discuz
/
DiscuzX
Code
Issues
110
Pull Requests
0
Wiki
Insights
Pipelines
Service
PHPDoc
Quality Analysis
Jenkins for Gitee
Tencent CloudBase
Tencent Cloud Serverless
悬镜安全
Aliyun SAE
Codeblitz
SBOM
DevLens
Don’t show this again
556
[Lightweight PR]: 修复 后台左侧边栏滚轮相关代码失效的问题
Merged
N/A
Discuz:master
popcorner
create on 2020-09-04 18:22
Clone/Download
HTTPS
SSH
Copy
Email Patch
Diff file
之前有人提过后台左侧栏过长的时候,只能上下点按的交互方式很糟糕 我也一直觉得左侧边栏的滚动方式设计的很奇怪,只能用鼠标点,用起来很不方便。 之前也有了一个相关的PR移除这个行为( !467 ,感谢作者 @stackia ) ---- 但是我最近看代码的时候发现,原来后台的左侧边栏不是这么设计的啊…… 在原始设计的代码当中,的确存在着支持鼠标滚动的相关代码。那为什么实际上却不能滚动呢? 仔细检查发现,这段代码完全没有考虑到IE和firefox以外浏览器的使用体验,在这两个浏览器上滚动功能是正常工作的。 根本原因在于,当年没有一个明确统一的浏览器标准。IE一个标准,firefox一个标准,而webkit内核选择了跟进IE而不是firefox。后台代码当中并未将IE相关的代码作用在IE浏览器以外,自然就无法在chrome上滚动了。 于是我们只需要简单的将浏览器判断改为方法支持的判断,就可以立即恢复正常。 等一下! 刚才说了,当年没有一个明确统一的浏览器标准。可是现在有了啊。那么把它也加进去就比较好了。 最新的标准事件接口WheelEvent可以支持最新的所有主流浏览器,包括IE9+。 理论上只需要保留这一个就够了。 不过毕竟Discuz还支持更早期版本的IE,就先留着吧。
This pull request needs to pass some approval items
Type
Assign personnel
Status
Reviewer
monkeye
湖中沉
Pass review
DiscuzX
LooTan
Discuz!
oldhuhu
comsenz-service
Completed
(1/1 )
How to merge Pull Request
git checkout master
git pull https://gitee.com/Discuz/DiscuzX.git N/A
git push origin master
Comments
0
Commits
1
Files
1
Checks
Code problems
0
Bulk operation
Expand
Collapse
Reviewer
Code Owner
Reviewer
oldhuhu
forkmerge
comsenz-service
comsenz-service
奶罩
naizhao
老周部落
laozhoubuluo
popcorner
popcorner
Discuz
dismall
北北″
moxue
Hyman
guohui1301
云诺
yunnuowangluo
科站网
dzlab
monkeye
Discuzx
DiscuzX
3dming
LooTan
lootan
湖中沉
zoewho
Discuz!
ComsenzDiscuz
No Setting
Min number
1
Tester
oldhuhu
forkmerge
comsenz-service
comsenz-service
奶罩
naizhao
老周部落
laozhoubuluo
popcorner
popcorner
Discuz
dismall
北北″
moxue
Hyman
guohui1301
云诺
yunnuowangluo
科站网
dzlab
monkeye
Discuzx
DiscuzX
3dming
LooTan
lootan
湖中沉
zoewho
No Setting
Min number
0
Priority
Not specified
Serious
Main
Secondary
Unimportant
Label
Label settings
No Setting
Link Issue
No link issue
Successfully merged pull requests will close issues
Milestone
No related milestones
Participators
(1)
PHP
1
https://gitee.com/Discuz/DiscuzX.git
git@gitee.com:Discuz/DiscuzX.git
Discuz
DiscuzX
DiscuzX
Going to Help Center
Search
Git 命令在线学习
如何在 Gitee 导入 GitHub 仓库
Git 仓库基础操作
企业版和社区版功能对比
SSH 公钥设置
如何处理代码冲突
仓库体积过大,如何减小?
如何找回被删除的仓库数据
Gitee 产品配额说明
GitHub仓库快速导入Gitee及同步更新
什么是 Release(发行版)
将 PHP 项目自动发布到 packagist.org
Comment
Repository Report
Back to the top
Login prompt
This operation requires login to the code cloud account. Please log in before operating.
Go to login
No account. Register