Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(555)

Unified Diff: third_party/WebKit/Source/platform/PlatformTouchPoint.h

Issue 1617863002: Set the correct pressure for pointer events based on force (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Applying comments Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/platform/PlatformTouchPoint.h
diff --git a/third_party/WebKit/Source/platform/PlatformTouchPoint.h b/third_party/WebKit/Source/platform/PlatformTouchPoint.h
index 9729b67035a93f4b5e5b58e5a8e5938e223aca5c..682bd112fab15562fe5b1839eb719832300468b4 100644
--- a/third_party/WebKit/Source/platform/PlatformTouchPoint.h
+++ b/third_party/WebKit/Source/platform/PlatformTouchPoint.h
@@ -49,7 +49,7 @@ public:
FloatPoint pos() const { return m_pos; }
FloatSize radius() const { return m_radius; }
float rotationAngle() const { return m_rotationAngle; }
- float force() const { return pointerProperties().force; }
+ float force() const { ASSERT(!isnan(pointerProperties().force)); return pointerProperties().force; }
protected:
WebPointerProperties m_pointerProperties;

Powered by Google App Engine
This is Rietveld 408576698