fixed: touchPad double tap button not released

This commit is contained in:
True Zhuanjia committed 2026-02-03 16:13:00 +08:00
1 parent 10839f88d8
commit a9ede7a904
1 file changed
+6 -3
+6 -3
View File
@@ -29,7 +29,7 @@ import SVGKit
@objc public static func setPostExclusiveUnfoldeds(_ sequences:NSSet){
let sequenceSet:Set<Int16> = sequences as? Set<Int16> ?? Set()
postExclusiveUnfoldedSequences = Set(sequenceSet)
print("postExclusiveUnfoldedSequences \(postExclusiveUnfoldedSequences) \(CACurrentMediaTime())")
// print("postExclusiveUnfoldedSequences \(postExclusiveUnfoldedSequences) \(CACurrentMediaTime())")
}
@objc public weak var guidelineDelegate: OnScreenWidgetGuidelineUpdateDelegate?
@@ -2553,8 +2553,11 @@ import SVGKit
default:
break
}
if self.widgetType == .touchPad {
self.handleButtonUp()
}
}
if !OnScreenWidgetView.isTweakingHighlight {
if CommandManager.stickTouchPads.contains(touchPadString){
self.l3r3Indicator.isHidden = true
@@ -2902,7 +2905,7 @@ import SVGKit
OnScreenWidgetView.set(folded: false, for: unfoldedExclusiveFolder!)
}
print("postExclusiveUnfoldedSequences \(postExclusiveUnfoldedSequences) stamp \(CACurrentMediaTime())")
// print("postExclusiveUnfoldedSequences \(postExclusiveUnfoldedSequences) stamp \(CACurrentMediaTime())")
for sequence in postExclusiveUnfoldedSequences {
guard let folder = OnScreenWidgetView.mapping[sequence] else { continue }
OnScreenWidgetView.set(folded: false, for: folder)