Expansion of vibrate options
Improve location / timing of vibration
Split out vibrate settings for buttons, keyboard, and long actions
Change-Id: I282825cc5f3e44ed6dcabe65dc1f4cb21b407b67
diff --git a/gui/slider.cpp b/gui/slider.cpp
index 3908b82..af0c542 100644
--- a/gui/slider.cpp
+++ b/gui/slider.cpp
@@ -154,12 +154,13 @@
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;