gecko-dev/modules/libpref
Masayuki Nakano 16fd3a84a4 Bug 143038 Make users can scroll contents horizontally with vertical wheel operation with a modifier r=smaug
This patch declares a new default action, "horizontal scroll", this scrolls
content horizontally with deltaY of wheel events and ignores deltaX and deltaZ.
This is used for default action with Shift key in default setting except on
macOS. On macOS, legacy mouse's vertical wheel operation with Shift key causes
native horizontal wheel event.  Therefore, we don't need to use this new
default action on macOS.  Additionally, old default action with Shift key,
navigating history, is moved to with Alt key.  This makes same settings between
macOS and the others.  So, this is better for users who use macOS and another
OS and web app developers who check wheel events only on macOS or other
platform(s).

For simpler implementation, default action handlers moves deltaY values to
deltaX values temporarily *only* while they handle wheel events.  This is
performed by AutoWheelDeltaAdjuster and restored after handling it
automatically.

So, in other words, even if default action is "horizontal scroll", web apps
receives wheel events whose deltaY is not zero but its content will be
scrolled horizontally.  This is same as Chromium, so, this behavior shouldn't
cause any incompatible behavior with it.

MozReview-Commit-ID: E4X3yZzLEAl

--HG--
extra : rebase_source : e20d854c6b0a181ad4c9e7304bd9ad14256481ff
2017-10-05 01:12:35 +09:00
..
init Bug 143038 Make users can scroll contents horizontally with vertical wheel operation with a modifier r=smaug 2017-10-05 01:12:35 +09:00
test Bug 1406281 - Restyle CallbackAndVarCacheOrder.cpp. r=erahm. 2017-10-08 07:46:07 +11:00
greprefs.js Bug 1337748 - Move security-prefs.js from netwerk/ to security/manager/. r=keeler,mcmanus 2017-02-08 21:16:27 +09:00
moz.build Bug 1407112 (part 4) - Merge prefapi.{cpp,h} and prefapi_private_data.h into Preferences.cpp. r=glandium. 2017-10-11 21:02:03 +11:00
nsIPrefBranch.idl Bug 1355216 - Mark last parameters that are almost always falsy as optional, r=froydnj. 2017-04-12 00:07:30 +02:00
nsIPrefLocalizedString.idl
nsIPrefService.idl Backed out changeset 4f0ee0f75a30 (bug 1367813) for Windows opt permaorange in test_worker_basic.html 2017-06-22 20:43:11 -07:00
nsIRelativeFilePref.idl
Preferences.cpp Bug 1408231 - Remove unnecessary forward declarations and add |static| where appropriate. r=glandium. 2017-10-13 15:24:59 +11:00
Preferences.h Bug 1407494 (part 4) - Remove have_PrefChangedFunc_typedef. r=glandium. 2017-10-13 15:24:58 +11:00