Using trackball to emulate wheel button scroll (horizontal & vertical) in web browser (Epiphany 2.14.0 and Firefox 22.214.171.124).
- Open xorg.conf file using a text editor (gedit). Go to Applications -> Accessories -> Terminal and enter command:Code:sudo gedit /etc/X11/xorg.conf
- Look for a section that contains the entry for your mouse, it looks kind of like this.
Code:Section "InputDevice" Identifier "Configured Mouse" Driver "mouse" Option "CorePointer" Option "Device" "/dev/input/mice" Option "Protocol" "ImPS/2" Option "ZAxisMapping" "4 5" Option "Emulate3Buttons" "true" EndSection
- Edit that section into this:
Code:Section "InputDevice" Identifier "Configured Mouse" Driver "mouse" Option "CorePointer" Option "Device" "/dev/input/mice" Option "Protocol" "ExplorerPS/2" Option "Emulate3Buttons" "true" Option "Buttons" "9" Option "EmulateWheel" "1" Option "EmulateWheelButton" "8" # for right-handed people Option "YAxisMapping" "4 5" Option "XAxisMapping" "6 7" EndSection
- For left-handed people. Use this:
Code:Option "EmulateWheelButton" "9" # for left-handed people
- Go to Epiphany / Firefox address bar and type:Code:about:config
- Filter for the word scroll and look for these lines:Code:mousewheel.horizscroll.withnokey.action default integer 2 mousewheel.horizscroll.withnokey.sysnumlines default boelean false
- Change the default value into new value:Code:mousewheel.horizscroll.withnokey.action user set integer 0 mousewheel.horizscroll.withnokey.sysnumlines user set boelean true
a. Xorg user documentation
b. mozillaZineOption "Buttons" "integer"
Specifies the number of mouse buttons. In cases where the number of buttons cannot be auto-detected, the default value is 3. The maximum number is 24.
Option "Emulate3Buttons" "boolean"
Enable/disable the emulation of the third (middle) mouse button for mice which only have two physical buttons. The third button is emulated by pressing both buttons simultaneously. Default: off
Option "EmulateWheel" "boolean"
Enable/disable "wheel" emulation. Wheel emulation means emulating button press/release events when the mouse is moved while a specific real button is pressed. Wheel button events (typically buttons 4 and 5) are usually used for scrolling. Wheel emulation is useful for getting wheel-like behaviour with trackballs. It can also be useful for mice with 4 or more buttons but no wheel. See the description of the EmulateWheelButton, EmulateWheelInertia, XAxisMapping, and YAxisMapping options below. Default: off.
Option "EmulateWheelButton" "integer"
Specifies which button must be held down to enable wheel emulation mode. While this button is down, X and/or Y pointer movement will generate button press/release events as specified for the XAxisMapping and YAxisMapping settings. Default: 4.
Option "XAxisMapping" "N1 N2"
Specifies which buttons are mapped to motion in the X direction in wheel emulation mode. Button number N1 is mapped to the negative X axis motion and button number N2 is mapped to the positive X axis motion. Default: no mapping.
Option "YAxisMapping" "N1 N2"
Specifies which buttons are mapped to motion in the Y direction in wheel emulation mode. Button number N1 is mapped to the negative Y axis motion and button number N2 is mapped to the positive Y axis motion. Default: "4 5".
These fall into two groups, vertical and horizontal scroll. The general form is:
- mousewheel.(modifier key).(type)
- mousewheel.horizscroll.(modifier key).(type)
Type is then one of:
integer value that determines the type of action:
- 0 - Scroll document by a number of lines (given by the numlines property)
- 1 - Scroll document by one page
- 2 - Move back/forward in history
- 3 - Make text larger/smaller
number of lines to scroll by (if relevant)
use system preferences to determine how many lines to scroll by