diff options
author | Ethan Yonker <dees_troy@teamw.in> | 2014-02-07 19:39:13 +0100 |
---|---|---|
committer | Gerrit Code Review <gerrit2@gerrit> | 2014-02-07 19:39:13 +0100 |
commit | 75de542490f6a78f346c75fdea0bfc7975e6b4d2 (patch) | |
tree | 13308f75330d0f61b3daa9f16e43425c59bef9f3 /gui/slider.cpp | |
parent | Merge "Add haptic feedback" into android-4.4 (diff) | |
parent | Expansion of vibrate options (diff) | |
download | android_bootable_recovery-75de542490f6a78f346c75fdea0bfc7975e6b4d2.tar android_bootable_recovery-75de542490f6a78f346c75fdea0bfc7975e6b4d2.tar.gz android_bootable_recovery-75de542490f6a78f346c75fdea0bfc7975e6b4d2.tar.bz2 android_bootable_recovery-75de542490f6a78f346c75fdea0bfc7975e6b4d2.tar.lz android_bootable_recovery-75de542490f6a78f346c75fdea0bfc7975e6b4d2.tar.xz android_bootable_recovery-75de542490f6a78f346c75fdea0bfc7975e6b4d2.tar.zst android_bootable_recovery-75de542490f6a78f346c75fdea0bfc7975e6b4d2.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; |