第一种方法,不但可以上下滚动,还可以左右滚动:
修改/etc/X11/xorg.conf,找到Configured Mouse一段
Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/input/mice"
Option "Protocol" "ExplorerPS/2"
Option "Emulate3Buttons" "true"
Option "Emulate3TimeOut" "50"
Option "EmulateWheel" "on"
Option "EmulateWheelTimeOut" "200"
Option "EmulateWheelButton" "2"
Option "YAxisMapping" "4 5"
Option "XAxisMapping" "6 7"
Option "ZAxisMapping" "4 5"
EndSection
但在默认配置下,firefox里的左右滚动是前进和后退功能,这样在上下滚动时一不小心就会出现网页前进和后退,很不爽。
修改左右滚动功能的方法是,在firefox地址栏中输入
about:config
回车。更改下列设置:
mousewheel.horizscroll.withcontrolkey.action = 3;
mousewheel.horizscroll.withcontrolkey.numlines = 1;
mousewheel.horizscroll.withcontrolkey.sysnumlines = true;
mousewheel.horizscroll.withnokey.action = 0;
mousewheel.horizscroll.withnokey.numlines = 1;
mousewheel.horizscroll.withnokey.sysnumlines = true;
mousewheel.horizscroll.withshiftkey.action = 1;
mousewheel.horizscroll.withshiftkey.numlines = 1;
mousewheel.horizscroll.withshiftkey.sysnumlines = true;
firefox的配置项很多,别忘了使用过滤器。
修改完以上配置就可以了,这时中键的左右滚动就可以控制网页的左右滚动,很适合浏览大的网页。
第二种方法,不支持左右滚动,也不用修改firefox的配置
还是修改xorg.conf,但内容略有不同:
Section "InputDevice"
Identifier "Configured Mouse"
Driver "vmmouse"
Option "CorePointer"
Option "Device" "/dev/input/mice"
Option "Protocol" "ImPS/2"
Option "Emulate3Buttons" "true"
Option "EmulateWheel" "true"
Option "EmulateWheelButton" "2"
Option "ZAxisMapping" "4 5"
EndSection
![[RSS]](/modules/taxonomy_dhtml/rss3.gif)





Recent comments
11 weeks 6 days ago
31 weeks 5 hours ago
31 weeks 5 hours ago
32 weeks 1 hour ago
34 weeks 5 days ago
37 weeks 1 day ago
37 weeks 2 days ago
38 weeks 5 days ago
41 weeks 4 days ago
41 weeks 6 days ago