folder expansion fix

This commit is contained in:
True Zhuanjia
2026-05-17 21:40:24 +08:00
parent 1630f7987a
commit ab14e18b4a
2 changed files with 5 additions and 0 deletions
+4
View File
@@ -440,6 +440,7 @@ import ObjectiveC.runtime
@objc public var parentSequence: Int16 = -1
@objc public var standardFoldingInterval: TimeInterval = 0.05
static weak var capturer: OnScreenWidgetView?
@objc static weak var deepestButton: OnScreenWidgetView?
@objc init(cmdString: String, buttonLabel: String, shape:String, profile:OSCProfile) {
@@ -3638,6 +3639,9 @@ import ObjectiveC.runtime
}
}
if widget.hasNonEditableLabel {widget.setupAtrributedText()}
if widget.widgetType == .touchPad, let deepestButton = OnScreenWidgetView.deepestButton {
widget.superview?.insertSubview(widget, belowSubview: deepestButton)
}
})
}
}
+1
View File
@@ -814,6 +814,7 @@ static const double X1_MOUSE_SPEED_DIVISOR = 2.5;
if (index<buttonIndex){
buttonIndex = index;
deepestButton = subview;
OnScreenWidgetView.deepestButton = (OnScreenWidgetView* )deepestButton;
}
}
}