1
0
Fork 0
This commit is contained in:
namedkitten 2020-04-29 11:13:55 +01:00
parent 6eb6c21688
commit fba2380eee
2 changed files with 5 additions and 4 deletions

View file

@ -128,7 +128,7 @@ main(int argc, char* argv[])
settings.setValue("Appearance/doubleTapToSeek", true); settings.setValue("Appearance/doubleTapToSeek", true);
settings.setValue("Appearance/scaleFactor", 2.2); settings.setValue("Appearance/scaleFactor", 2.2);
settings.setValue("Appearance/subtitlesFontSize", 38); settings.setValue("Appearance/subtitlesFontSize", 38);
settings.setValue("Appearance/uiFadeTimer", 2000); settings.setValue("Appearance/uiFadeTimer", 0);
} }
} }

View file

@ -401,7 +401,6 @@ Window {
} }
} }
onPositionChanged: { onPositionChanged: {
//console.warn(mouseAreaPlayer.mapToItem(controlsBar, mouse.x, mouse.y).y)
if (mouseAreaPlayer.containsPress) { if (mouseAreaPlayer.containsPress) {
var currVel = (mouse.x - xPrev) var currVel = (mouse.x - xPrev)
velocity = (velocity + currVel) / 2.0 velocity = (velocity + currVel) / 2.0
@ -422,10 +421,12 @@ Window {
Timer { Timer {
id: mouseAreaPlayerTimer id: mouseAreaPlayerTimer
interval: appearance.uiFadeTimer interval: appearance.uiFadeTimer
running: true running: (! appearance.uiFadeTimer == 0)
repeat: false repeat: false
onTriggered: { onTriggered: {
globalConnections.hideUI() if (! (appearance.uiFadeTimer == 0) ) {
globalConnections.hideUI()
}
} }
} }
} }