зеркало из https://github.com/mozilla/pjs.git
Bug 686701 - Revise handling of preventDefault on touch events. r=mbrubeck
This commit is contained in:
Родитель
1bfd54f26a
Коммит
f24c1b9b34
|
@ -608,8 +608,8 @@ pref("image.mem.min_discard_timeout_ms", 10000);
|
|||
|
||||
// enable touch events interfaces
|
||||
pref("dom.w3c_touch_events.enabled", true);
|
||||
pref("dom.w3c_touch_events.safetyX", 0); // escape borders in units of 1/240"
|
||||
pref("dom.w3c_touch_events.safetyY", 120); // escape borders in units of 1/240"
|
||||
pref("dom.w3c_touch_events.safetyX", 5); // escape borders in units of 1/240"
|
||||
pref("dom.w3c_touch_events.safetyY", 20); // escape borders in units of 1/240"
|
||||
|
||||
#ifdef MOZ_SAFE_BROWSING
|
||||
// Safe browsing does nothing unless this pref is set
|
||||
|
|
|
@ -1950,8 +1950,7 @@ const ContentTouchHandler = {
|
|||
// Check if the user touched near to one of the edges of the browser area
|
||||
// or if the urlbar is showing
|
||||
this.canCancelPan = (aX >= rect.left + kSafetyX) && (aX <= rect.right - kSafetyX) &&
|
||||
(aY >= rect.top + kSafetyY) &&
|
||||
(bcr.top == 0 || Util.isTablet());
|
||||
(aY >= rect.top + kSafetyY);
|
||||
},
|
||||
|
||||
tapDown: function tapDown(aX, aY) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче