From b3ca0459360d000ba2f9a0b408f09438a956af2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=B1=E5=AD=90=E6=A5=9A=5Czhuzi?= Date: Sat, 10 Jun 2023 11:11:28 +0800 Subject: [PATCH] update --- example/qml/window/MainWindow.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/example/qml/window/MainWindow.qml b/example/qml/window/MainWindow.qml index 805bb7e9..846b7f76 100644 --- a/example/qml/window/MainWindow.qml +++ b/example/qml/window/MainWindow.qml @@ -161,7 +161,7 @@ CustomWindow { transformOrigin: Item.Center onLoginClicked:{ clickCount += 1 - if(clickCount === 5){ + if(clickCount === 1){ flipable.flipped = true clickCount = 0 } @@ -243,7 +243,7 @@ CustomWindow { } function handleDarkChanged(button){ - var pos = button.mapToItem(flipable,0,0) + var pos = button.mapToItem(window.contentItem,0,0) var mouseX = pos.x var mouseY = pos.y canvas.maxRadius = Math.max(distance(mouseX,mouseY,0,0),distance(mouseX,mouseY,canvas.width,0),distance(mouseX,mouseY,0,canvas.height),distance(mouseX,mouseY,canvas.width,canvas.height))