From 03db326c64b246974d9cfaba02406d7bd77d8c37 Mon Sep 17 00:00:00 2001 From: Ethan Yonker Date: Wed, 5 Feb 2014 08:02:06 -0600 Subject: Expansion of vibrate options Improve location / timing of vibration Split out vibrate settings for buttons, keyboard, and long actions Change-Id: I282825cc5f3e44ed6dcabe65dc1f4cb21b407b67 --- gui/slider.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'gui/slider.cpp') 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; -- cgit v1.2.3