diff options
author | Ethan Yonker <dees_troy@teamw.in> | 2014-02-05 15:02:06 +0100 |
---|---|---|
committer | Ethan Yonker <dees_troy@teamw.in> | 2014-02-07 16:53:41 +0100 |
commit | 03db326c64b246974d9cfaba02406d7bd77d8c37 (patch) | |
tree | 657ab4029909cfa614c9cee91f19a27b55da1763 /gui/slider.cpp | |
parent | Add haptic feedback (diff) | |
download | android_bootable_recovery-03db326c64b246974d9cfaba02406d7bd77d8c37.tar android_bootable_recovery-03db326c64b246974d9cfaba02406d7bd77d8c37.tar.gz android_bootable_recovery-03db326c64b246974d9cfaba02406d7bd77d8c37.tar.bz2 android_bootable_recovery-03db326c64b246974d9cfaba02406d7bd77d8c37.tar.lz android_bootable_recovery-03db326c64b246974d9cfaba02406d7bd77d8c37.tar.xz android_bootable_recovery-03db326c64b246974d9cfaba02406d7bd77d8c37.tar.zst android_bootable_recovery-03db326c64b246974d9cfaba02406d7bd77d8c37.zip |
Diffstat (limited to 'gui/slider.cpp')
-rw-r--r-- | gui/slider.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gui/slider.cpp b/gui/slider.cpp index 3908b82ab..af0c542de 100644 --- a/gui/slider.cpp +++ b/gui/slider.cpp @@ -154,12 +154,13 @@ int GUISlider::NotifyTouch(TOUCH_STATE state, int x, int y) break; case TOUCH_RELEASE: - DataManager::Vibrate("tw_button_vibrate"); if (!dragging) return 0; - if (sCurTouchX >= mRenderX + mRenderW - sTouchW) + if (sCurTouchX >= mRenderX + mRenderW - sTouchW) { + DataManager::Vibrate("tw_button_vibrate"); sAction->doActions(); + } sCurTouchX = mRenderX; dragging = false; |