Skip to content

Commit c441b2f

Browse files
authored
Merge pull request #13 from sfos-ja/fix-for-sfos3-change
OK
2 parents d0407c2 + 0c365aa commit c441b2f

File tree

3 files changed

+5
-678
lines changed

3 files changed

+5
-678
lines changed

src/Flicker.qml

-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ QtObject {
3333
id: flicker
3434
property Item target: null
3535
property bool enabled
36-
property bool isFlicking: false
3736

3837
onTargetChanged: {
3938
enabled = false

src/KeyboardBase_Flick.qml

+5-3
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@ SwipeGestureArea {
9191
}
9292

9393
readonly property bool swipeGestureIsSafe: !releaseTimer.running
94-
property bool isFlicking: flicker.isFlicking
9594

9695
height: layout ? layout.height : 0
9796
onLayoutChanged: if (layout) layout.parent = keyboard
@@ -104,6 +103,11 @@ SwipeGestureArea {
104103
Flicker {
105104
id: flicker
106105
target: lastPressedKey
106+
onTargetChanged: {
107+
if (target && target.enableFlicker) {
108+
keyboard.cancelGesture()
109+
}
110+
}
107111
}
108112

109113
Popper {
@@ -263,7 +267,6 @@ SwipeGestureArea {
263267
popper.setActiveCell(point.x, point.y)
264268
} else if (flicker.enabled) {
265269
flicker.setIndex(point)
266-
flicker.isFlicking = true
267270
} else {
268271
updatePressedKey(point)
269272
}
@@ -340,7 +343,6 @@ SwipeGestureArea {
340343
} else {
341344
if (flicker.enabled) {
342345
flicker.setIndex(point)
343-
flicker.isFlicking = false
344346
}
345347
triggerKey(point.pressedKey)
346348
}

0 commit comments

Comments
 (0)