diff options
-rw-r--r-- | src/controls/Styles/iOS/CursorDelegate.qml | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/controls/Styles/iOS/CursorDelegate.qml b/src/controls/Styles/iOS/CursorDelegate.qml index cf35e35d..5312398c 100644 --- a/src/controls/Styles/iOS/CursorDelegate.qml +++ b/src/controls/Styles/iOS/CursorDelegate.qml @@ -61,10 +61,14 @@ Rectangle { Timer { id: timer - running: cursor.visible + running: cursor.visible && Qt.styleHints.cursorFlashTime >= 2 repeat: true - interval: 500 + interval: Qt.styleHints.cursorFlashTime / 2 onTriggered: cursor.state = cursor.state == "on" ? "off" : "on" + onRunningChanged: { + if (!running) + cursor.state = "on" + } } states: [ |