summaryrefslogtreecommitdiffstats
path: root/dom/ipc/CoalescedTouchData.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'dom/ipc/CoalescedTouchData.cpp')
-rw-r--r--dom/ipc/CoalescedTouchData.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/dom/ipc/CoalescedTouchData.cpp b/dom/ipc/CoalescedTouchData.cpp
index 3c3bc71a0c..551e6ae901 100644
--- a/dom/ipc/CoalescedTouchData.cpp
+++ b/dom/ipc/CoalescedTouchData.cpp
@@ -25,8 +25,7 @@ void CoalescedTouchData::CreateCoalescedTouchEvent(
WidgetPointerEvent* event =
touch->mCoalescedWidgetEvents->mEvents.AppendElement(WidgetPointerEvent(
aEvent.IsTrusted(), ePointerMove, aEvent.mWidget));
- PointerEventHandler::InitPointerEventFromTouch(*event, aEvent, *touch,
- i == 0);
+ PointerEventHandler::InitPointerEventFromTouch(*event, aEvent, *touch);
event->mFlags.mBubbles = false;
event->mFlags.mCancelable = false;
}
@@ -63,8 +62,7 @@ void CoalescedTouchData::Coalesce(const WidgetTouchEvent& aEvent,
sameTouch->mCoalescedWidgetEvents->mEvents.AppendElement(
WidgetPointerEvent(aEvent.IsTrusted(), ePointerMove,
aEvent.mWidget));
- PointerEventHandler::InitPointerEventFromTouch(*event, aEvent, *touch,
- i == 0);
+ PointerEventHandler::InitPointerEventFromTouch(*event, aEvent, *touch);
event->mFlags.mBubbles = false;
event->mFlags.mCancelable = false;
}