зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1297445 - Remove improper call to WidgetModifiersToDOMModifiers. r=botond
MozReview-Commit-ID: 6cB3s4aCmKQ --HG-- extra : rebase_source : f32a4af4674c9e680330ddf261ca00997c5f6d2d
This commit is contained in:
Родитель
ae1bcceeda
Коммит
6c6c920c12
|
@ -254,7 +254,7 @@ APZEventState::ProcessLongTap(const nsCOMPtr<nsIPresShell>& aPresShell,
|
||||||
// Also send a touchcancel to content, so that listeners that might be
|
// Also send a touchcancel to content, so that listeners that might be
|
||||||
// waiting for a touchend don't trigger.
|
// waiting for a touchend don't trigger.
|
||||||
WidgetTouchEvent cancelTouchEvent(true, eTouchCancel, widget.get());
|
WidgetTouchEvent cancelTouchEvent(true, eTouchCancel, widget.get());
|
||||||
cancelTouchEvent.mModifiers = WidgetModifiersToDOMModifiers(aModifiers);
|
cancelTouchEvent.mModifiers = aModifiers;
|
||||||
auto ldPoint = LayoutDeviceIntPoint::Round(aPoint * aScale);
|
auto ldPoint = LayoutDeviceIntPoint::Round(aPoint * aScale);
|
||||||
cancelTouchEvent.mTouches.AppendElement(new mozilla::dom::Touch(mLastTouchIdentifier,
|
cancelTouchEvent.mTouches.AppendElement(new mozilla::dom::Touch(mLastTouchIdentifier,
|
||||||
ldPoint, LayoutDeviceIntPoint(), 0, 0));
|
ldPoint, LayoutDeviceIntPoint(), 0, 0));
|
||||||
|
|
Загрузка…
Ссылка в новой задаче