File tree 3 files changed +5
-678
lines changed
3 files changed +5
-678
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,6 @@ QtObject {
33
33
id: flicker
34
34
property Item target: null
35
35
property bool enabled
36
- property bool isFlicking: false
37
36
38
37
onTargetChanged: {
39
38
enabled = false
Original file line number Diff line number Diff line change @@ -91,7 +91,6 @@ SwipeGestureArea {
91
91
}
92
92
93
93
readonly property bool swipeGestureIsSafe: ! releaseTimer .running
94
- property bool isFlicking: flicker .isFlicking
95
94
96
95
height: layout ? layout .height : 0
97
96
onLayoutChanged: if (layout) layout .parent = keyboard
@@ -104,6 +103,11 @@ SwipeGestureArea {
104
103
Flicker {
105
104
id: flicker
106
105
target: lastPressedKey
106
+ onTargetChanged: {
107
+ if (target && target .enableFlicker ) {
108
+ keyboard .cancelGesture ()
109
+ }
110
+ }
107
111
}
108
112
109
113
Popper {
@@ -263,7 +267,6 @@ SwipeGestureArea {
263
267
popper .setActiveCell (point .x , point .y )
264
268
} else if (flicker .enabled ) {
265
269
flicker .setIndex (point)
266
- flicker .isFlicking = true
267
270
} else {
268
271
updatePressedKey (point)
269
272
}
@@ -340,7 +343,6 @@ SwipeGestureArea {
340
343
} else {
341
344
if (flicker .enabled ) {
342
345
flicker .setIndex (point)
343
- flicker .isFlicking = false
344
346
}
345
347
triggerKey (point .pressedKey )
346
348
}
You can’t perform that action at this time.
0 commit comments