diff --git a/VoidLink/Input/CustomOSC/OSCProfilesManager.m b/VoidLink/Input/CustomOSC/OSCProfilesManager.m index 8cce8bd1..f0e413e7 100644 --- a/VoidLink/Input/CustomOSC/OSCProfilesManager.m +++ b/VoidLink/Input/CustomOSC/OSCProfilesManager.m @@ -311,8 +311,7 @@ static CGRect layoutViewBounds; position.x = position.x / layoutViewBounds.size.width; position.y = position.y / layoutViewBounds.size.height; } - // asdfsda; - NSLog(@"sef.view bounds: %f, %f", layoutViewBounds.size.width, layoutViewBounds.size.height); + NSLog(@"layoutToolView bounds: %f, %f", layoutViewBounds.size.width, layoutViewBounds.size.height); NSLog(@"position: %f, %f, denormalized position: %f, %f", position.x, position.y, newPosition.x, newPosition.y); return position; } diff --git a/VoidLink/ViewControllers/CustomOSCViewControl/LayoutOnScreenControlsViewController.m b/VoidLink/ViewControllers/CustomOSCViewControl/LayoutOnScreenControlsViewController.m index 1beaf204..3f9ca0c6 100644 --- a/VoidLink/ViewControllers/CustomOSCViewControl/LayoutOnScreenControlsViewController.m +++ b/VoidLink/ViewControllers/CustomOSCViewControl/LayoutOnScreenControlsViewController.m @@ -298,6 +298,7 @@ selectedControllerLayer = nil; _oscProfilesTableViewController.layoutViewBounds = self.view.bounds; + [OSCProfilesManager setLayoutViewBounds:self.view.bounds]; [OSCProfilesManager setOnScreenWidgetViewsSet:self.onScreenWidgetViews]; // pass the keyboard button dict to profiles manager [self reloadOnScreenWidgetViews]; [self reloadLegacyOnScreenControls]; @@ -317,7 +318,7 @@ if ([UIApplication sharedApplication].applicationState != UIApplicationStateActive) return; viewWillBeResized = true; [self hideStickIndicators]; - // if(!_quickSwitchEnabled) [self saveTapped:nil]; + if(!_quickSwitchEnabled) [self saveTapped:nil]; } - (void)deviceOrientationDidChange{