From ab14e18b4a73db4bd3fc93ba1617c9f83b427365 Mon Sep 17 00:00:00 2001 From: True Zhuanjia Date: Sun, 17 May 2026 21:40:24 +0800 Subject: [PATCH] folder expansion fix --- VoidLink/Input/OnScreenWidgetView.swift | 4 ++++ VoidLink/Input/StreamView.m | 1 + 2 files changed, 5 insertions(+) diff --git a/VoidLink/Input/OnScreenWidgetView.swift b/VoidLink/Input/OnScreenWidgetView.swift index bca47cf1..3678e421 100644 --- a/VoidLink/Input/OnScreenWidgetView.swift +++ b/VoidLink/Input/OnScreenWidgetView.swift @@ -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) + } }) } } diff --git a/VoidLink/Input/StreamView.m b/VoidLink/Input/StreamView.m index a6ef1027..0d0654f1 100644 --- a/VoidLink/Input/StreamView.m +++ b/VoidLink/Input/StreamView.m @@ -814,6 +814,7 @@ static const double X1_MOUSE_SPEED_DIVISOR = 2.5; if (index