Changes

Jump to: navigation, search

Gecko:Mouse Wheel Scrolling

330 bytes removed, 01:26, 13 August 2012
Preferences for customizing delta values and default action
Starting Mozilla 17 (Firefox 17), following new prefs available.
; '''mousewheel.default.delta_multiplier_x'''; '''mousewheel.with_alt.delta_multiplier_x'''; '''mousewheel.with_control.delta_multiplier_x'''; '''mousewheel.with_meta.delta_multiplier_x'''; '''mousewheel.with_shift.delta_multiplier_x'''; '''mousewheel.with_win.delta_multiplier_x'''
: Customizing deltaX value of "wheel" event. The value 100 means 1.0. In nsEventStateManager, the deltaX value which is caused by a native event multiplies by the pref value. When two or more modifier keys are held, "default" pref is used. Currently, value between less than 100 and larger than -100 is not allowed.
; '''mousewheel.default.delta_multiplier_y'''; '''mousewheel.with_alt.delta_multiplier_y'''; '''mousewheel.with_control.delta_multiplier_y'''; '''mousewheel.with_meta.delta_multiplier_y'''; '''mousewheel.with_shift.delta_multiplier_y'''; '''mousewheel.with_win.delta_multiplier_y'''
: Customizing deltaY value of "wheel" event. The value 100 means 1.0. In nsEventStateManager, the deltaY value which is caused by a native event multiplies by the pref value. When two or more modifier keys are held, "default" pref is used. Currently, value between less than 100 and larger than -100 is not allowed.
; '''mousewheel.default.delta_multiplier_z'''; '''mousewheel.with_alt.delta_multiplier_z'''; '''mousewheel.with_control.delta_multiplier_z'''; '''mousewheel.with_meta.delta_multiplier_z'''; '''mousewheel.with_shift.delta_multiplier_z'''; '''mousewheel.with_win.delta_multiplier_z'''
: Customizing deltaZ value of "wheel" event. The value 100 means 1.0. In nsEventStateManager, the deltaZ value which is caused by a native event multiplies by the pref value. When two or more modifier keys are held, "default" pref is used. Currently, value between less than 100 and larger than -100 is not allowed. NOTE: deltaZ value never becomes non-zero if it's a trusted event. So, these prefs never work actually.
; '''mousewheel.default.action'''; '''mousewheel.with_alt.action'''; '''mousewheel.with_control.action'''; '''mousewheel.with_meta.action'''; '''mousewheel.with_shift.action'''; '''mousewheel.with_win.action'''
: Customizing default action of "wheel" event. The value 0 means "Do nothing", 1 means "Scroll contents", 2 means "Go back or forward in the history", 3 means "Zoom in or out the contents". You cannot specify different action to vertical wheel operation and horizontal wheel operation because both deltaX and deltaY values can be non-zero same time. So, specifying different action doesn't make sense.
Mozilla 16 (Firefox 16) or earlier, following prefs are available.
; '''mousewheel.withnokey.sysnumlines'''; '''mousewheel.withaltkey.sysnumlines'''; '''mousewheel.withcontrolkey.sysnumlines'''; '''mousewheel.withshiftkey.sysnumlines'''; '''mousewheel.withmetakey.sysnumlines'''; '''mousewheel.horizscroll.withnokey.sysnumlines'''; '''mousewheel.horizscroll.withaltkey.sysnumlines'''; '''mousewheel.horizscroll.withcontrolkey.sysnumlines'''; '''mousewheel.horizscroll.withshiftkey.sysnumlines'''; '''mousewheel.horizscroll.withmetakey.sysnumlines''': If the value is true, native delta value is used. Otherwise, it's false, '''numlines''' pref value replaces the delta value. If two or modifier keys are pressed, a pref of them is used. If Shift key is pressed, "withshiftkey" is used. Otherwise, if Control key is pressed, "withcontrolkey" is used. Otherwise, if Alt key is pressed, "withaltkey" is used. Otherwise, "withmetakey" is used.; '''mousewheel.withnokey.numlines'''; '''mousewheel.withaltkey.numlines'''; '''mousewheel.withcontrolkey.numlines'''; '''mousewheel.withshiftkey.numlines'''; '''mousewheel.withmetakey.numlines'''; '''mousewheel.horizscroll.withnokey.numlines'''; '''mousewheel.horizscroll.withaltkey.numlines'''; '''mousewheel.horizscroll.withcontrolkey.numlines'''; '''mousewheel.horizscroll.withshiftkey.numlines'''; '''mousewheel.horizscroll.withmetakey.numlines'''
: If "sysnumlines" is false, the pref value replaces native delta value. If two or modifier keys are pressed, a pref of them is used. If Shift key is pressed, "withshiftkey" is used. Otherwise, if Control key is pressed, "withcontrolkey" is used. Otherwise, if Alt key is pressed, "withaltkey" is used. Otherwise, "withmetakey" is used.
; '''mousewheel.withnokey.action'''; '''mousewheel.withaltkey.action'''; '''mousewheel.withcontrolkey.action'''; '''mousewheel.withshiftkey.action'''; '''mousewheel.withmetakey.action'''; '''mousewheel.horizscroll.withnokey.action'''; '''mousewheel.horizscroll.withaltkey.action'''; '''mousewheel.horizscroll.withcontrolkey.action'''; '''mousewheel.horizscroll.withshiftkey.action'''; '''mousewheel.horizscroll.withmetakey.action'''
: These prefs specify the default action of wheel events. The value 0 means "Scroll by lines", 1 means "Scroll by pages", 2 means "Go back or forward in the history", 3 means "Zoom in or out contents", 4 means "Scroll by pixels". If two or modifier keys are pressed, a pref of them is used. If Shift key is pressed, "withshiftkey" is used. Otherwise, if Control key is pressed, "withcontrolkey" is used. Otherwise, if Alt key is pressed, "withaltkey" is used. Otherwise, "withmetakey" is used.
87
edits

Navigation menu