Ubuntu下Firefox点击滚动区域底部未按翻页滚动问题求助
解决Ubuntu Firefox点击页面底部滚动行为与Chrome不一致的问题
问题背景
在Ubuntu 22.04(Jammy)的Firefox中,已通过about:config修改以下滚动相关配置,期望对齐Chrome/Chromium的滚动行为:
widget.gtk.overlay-scrollbars.enabled false widget.non-native-theme.gtk.scrollbar.thumb-size 1 widget.non-native-theme.scrollbar.size.override 15 general.smoothScroll true general.smoothScroll.stopDecelerationWeighting 0.8 mousewheel.min_line_scroll_amount 60 layout.frame_rate.precise true mousewheel.acceleration.start 1 mousewheel.min_line_scroll_amount 60 general.smoothScroll.mouseWheel.durationMaxMS: 250 general.smoothScroll.currentVelocityWeighting: 0 mousewheel.min_line_scroll_amount: 25
但遇到不一致问题:点击页面底部时,Firefox直接滚动到页面末尾,而Chrome会触发类似Page Down的翻页滚动。
解决方案
要让Firefox实现Chrome式的页面空白处点击翻页行为,需在about:config中修改以下配置:
- 找到配置项
browser.scrolling.clickScroll.enabled,设置为true(开启点击滚动功能) - 找到配置项
browser.scrolling.clickScroll.distance,设置为screen(设置滚动距离为一屏)
修改完成后重启Firefox,再次点击页面底部空白区域,即可触发类似Chrome的翻页滚动,而非直接跳转到页面末尾。
补充说明
- 上述配置仅针对页面空白区域(非可交互元素)的点击滚动行为,不会影响滚轮滚动、滚动条操作等其他滚动方式。
- 若需要恢复默认行为,将上述两个配置项分别改回
false和default即可。
内容的提问来源于stack exchange,提问作者shantanuo
相关产品推荐
相关产品推荐

