From 245f47f66073538c91b9f03ec51b5348c74eb2bc Mon Sep 17 00:00:00 2001 From: TrueZhuanjia Date: Sat, 27 Dec 2025 14:32:41 +0800 Subject: [PATCH] always send touchPad widgets to bottom --- .../LayoutOnScreenControlsViewController.m | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/VoidLink/ViewControllers/CustomOSCViewControl/LayoutOnScreenControlsViewController.m b/VoidLink/ViewControllers/CustomOSCViewControl/LayoutOnScreenControlsViewController.m index e3c5fb70..5afccda9 100644 --- a/VoidLink/ViewControllers/CustomOSCViewControl/LayoutOnScreenControlsViewController.m +++ b/VoidLink/ViewControllers/CustomOSCViewControl/LayoutOnScreenControlsViewController.m @@ -1790,7 +1790,11 @@ typedef NS_ENUM(NSUInteger, DecelerationRateSliderMode) { // UITouch *touch = [touches anyObject]; // Get the first touch in the set _widgetPanelStack.userInteractionEnabled = true; - if(selectedWidgetView) [self.view insertSubview:selectedWidgetView belowSubview:_widgetPanelStack]; + if(selectedWidgetView){ + [self.view insertSubview:selectedWidgetView belowSubview:_widgetPanelStack]; + if(selectedWidgetView.widgetType == WidgetTypeEnumTouchPad) [self.view sendSubviewToBack:selectedWidgetView]; + + } if(!isToolbarHidden && self->selectedWidgetView != nil && [self layerIsOverlappingWithTrashcanButton:selectedWidgetView.layer]){