Bug 1038930 - Ensure that touches from different touch event types are not treated as equal. r=smaug
☠☠ backed out by c311ca13e830 ☠ ☠
authorKartikaya Gupta <kgupta@mozilla.com>
Wed, 16 Jul 2014 08:33:49 -0400
changeset 216297 d69317ef2dea4a6e5f996c5d3f4e660b295e6a2a
parent 216296 ffa4255ebaa776508973182fd972e50bbcc7b3a4
child 216298 c892d4e318ad69f880cb7d13956c7ee9bc8e155d
push id515
push userraliiev@mozilla.com
push dateMon, 06 Oct 2014 12:51:51 +0000
treeherdermozilla-release@267c7a481bef [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssmaug
bugs1038930
milestone33.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1038930 - Ensure that touches from different touch event types are not treated as equal. r=smaug
dom/events/Touch.cpp
--- a/dom/events/Touch.cpp
+++ b/dom/events/Touch.cpp
@@ -126,17 +126,18 @@ Touch::SetTarget(EventTarget* aTarget)
 
 bool
 Touch::Equals(Touch* aTouch)
 {
   return mRefPoint == aTouch->mRefPoint &&
          mForce == aTouch->Force() &&
          mRotationAngle == aTouch->RotationAngle() &&
          mRadius.x == aTouch->RadiusX() &&
-         mRadius.y == aTouch->RadiusY();
+         mRadius.y == aTouch->RadiusY() &&
+         mMessage == aTouch->mMessage;
 }
 
 JSObject*
 Touch::WrapObject(JSContext* aCx)
 {
   return TouchBinding::Wrap(aCx, this);
 }