summaryrefslogtreecommitdiffstats
path: root/gui/slider.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gui/slider.cpp')
-rw-r--r--gui/slider.cpp5
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;