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
+5 -2
+5 -2
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,6 +2553,9 @@ import SVGKit
default:
break
}
if self.widgetType == .touchPad {
self.handleButtonUp()
}
}
if !OnScreenWidgetView.isTweakingHighlight {
@@ -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)