diff options
Diffstat (limited to 'src/views')
-rw-r--r-- | src/views/SkTouchGesture.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/views/SkTouchGesture.cpp b/src/views/SkTouchGesture.cpp index dbcec511b7..4dce06a6f3 100644 --- a/src/views/SkTouchGesture.cpp +++ b/src/views/SkTouchGesture.cpp @@ -108,17 +108,21 @@ SkTouchGesture::SkTouchGesture() { SkTouchGesture::~SkTouchGesture() { } -void SkTouchGesture::reset() { +void SkTouchGesture::resetTouchState() { fIsTransLimited = false; fTouches.reset(); fState = kEmpty_State; fLocalM.reset(); - fGlobalM.reset(); fLastUpMillis = SkTime::GetMSecs() - 2*MAX_DBL_TAP_INTERVAL; fLastUpP.set(0, 0); } +void SkTouchGesture::reset() { + fGlobalM.reset(); + this->resetTouchState(); +} + void SkTouchGesture::flushLocalM() { fGlobalM.postConcat(fLocalM); fLocalM.reset(); |