From fba2380eeed12a6d9006a51a107536929dc1174b Mon Sep 17 00:00:00 2001 From: namedkitten Date: Wed, 29 Apr 2020 11:13:55 +0100 Subject: [PATCH] Mobile. --- src/main.cpp | 2 +- src/qml/main.qml | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index c5886b4..41c5a08 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -128,7 +128,7 @@ main(int argc, char* argv[]) settings.setValue("Appearance/doubleTapToSeek", true); settings.setValue("Appearance/scaleFactor", 2.2); settings.setValue("Appearance/subtitlesFontSize", 38); - settings.setValue("Appearance/uiFadeTimer", 2000); + settings.setValue("Appearance/uiFadeTimer", 0); } } diff --git a/src/qml/main.qml b/src/qml/main.qml index ccb0dee..5e2ff05 100644 --- a/src/qml/main.qml +++ b/src/qml/main.qml @@ -401,7 +401,6 @@ Window { } } onPositionChanged: { - //console.warn(mouseAreaPlayer.mapToItem(controlsBar, mouse.x, mouse.y).y) if (mouseAreaPlayer.containsPress) { var currVel = (mouse.x - xPrev) velocity = (velocity + currVel) / 2.0 @@ -422,10 +421,12 @@ Window { Timer { id: mouseAreaPlayerTimer interval: appearance.uiFadeTimer - running: true + running: (! appearance.uiFadeTimer == 0) repeat: false onTriggered: { - globalConnections.hideUI() + if (! (appearance.uiFadeTimer == 0) ) { + globalConnections.hideUI() + } } } }