diff --git a/gfx/thebes/gfxPrefs.h b/gfx/thebes/gfxPrefs.h index 988a139fd6c5..410013d7d599 100644 --- a/gfx/thebes/gfxPrefs.h +++ b/gfx/thebes/gfxPrefs.h @@ -202,6 +202,7 @@ private: DECL_GFX_PREF(Once, "dom.vr.cardboard.enabled", VRCardboardEnabled, bool, false); DECL_GFX_PREF(Once, "dom.vr.add-test-devices", VRAddTestDevices, int32_t, 1); DECL_GFX_PREF(Live, "dom.w3c_pointer_events.enabled", PointerEventsEnabled, bool, false); + DECL_GFX_PREF(Live, "dom.w3c_touch_events.enabled", TouchEventsEnabled, int32_t, 0); DECL_GFX_PREF(Live, "general.smoothScroll", SmoothScrollEnabled, bool, true); DECL_GFX_PREF(Live, "general.smoothScroll.durationToIntervalRatio", diff --git a/gfx/thebes/gfxWindowsPlatform.cpp b/gfx/thebes/gfxWindowsPlatform.cpp index b58b380054a5..64c1a310487d 100755 --- a/gfx/thebes/gfxWindowsPlatform.cpp +++ b/gfx/thebes/gfxWindowsPlatform.cpp @@ -2971,7 +2971,7 @@ gfxWindowsPlatform::CreateHardwareVsyncSource() bool gfxWindowsPlatform::SupportsApzTouchInput() const { - int value = Preferences::GetInt("dom.w3c_touch_events.enabled", 0); + int value = gfxPrefs::TouchEventsEnabled(); return value == 1 || value == 2; }