mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-27 14:27:15 +00:00
TRACKING APP: hud
This commit is contained in:
1 parent
613cc776ac
commit
d25eeb0935
1 file changed
+3
-1
+3
-1
@@ -72,10 +72,10 @@ public class HudFragment extends BaseFragment {
|
||||
switch (event.getAction()) {
|
||||
case MotionEvent.ACTION_MOVE:
|
||||
int newTranslation = y - yDelta;
|
||||
lastTranslation = newTranslation;
|
||||
if (newTranslation >= minTranslateY && newTranslation < maxTranslateY)
|
||||
{
|
||||
view.setTranslationY(newTranslation);
|
||||
lastTranslation = newTranslation;
|
||||
}
|
||||
break;
|
||||
case MotionEvent.ACTION_UP:
|
||||
@@ -91,6 +91,8 @@ public class HudFragment extends BaseFragment {
|
||||
|
||||
lastTranslation = (int) maxTranslateY;
|
||||
}
|
||||
|
||||
view.performClick();
|
||||
break;
|
||||
|
||||
case MotionEvent.ACTION_DOWN:
|
||||
|
||||
Reference in new issue
Block a user