diff --git a/VoidLink/Input/CustomOSC/LayoutOnScreenControls.m b/VoidLink/Input/CustomOSC/LayoutOnScreenControls.m index f337f5e5..84435e93 100644 --- a/VoidLink/Input/CustomOSC/LayoutOnScreenControls.m +++ b/VoidLink/Input/CustomOSC/LayoutOnScreenControls.m @@ -141,8 +141,8 @@ OnScreenWidgetView.isHorizontallyAligned = false; for (CALayer *button in self.OSCButtonLayerPool) { // horizontal guideline position check if ((layerBeingDragged != button) && !button.isHidden) { - if ((horizontalGuideline.center.y < button.position.y + 2) && - (horizontalGuideline.center.y > button.position.y - 2)) { + if ((horizontalGuideline.center.y < button.position.y + 1) && + (horizontalGuideline.center.y > button.position.y - 1)) { horizontalGuideline.backgroundColor = [UIColor yellowColor]; OnScreenWidgetView.isHorizontallyAligned = true; OnScreenWidgetView.alignedY = button.position.y; @@ -155,7 +155,7 @@ OnScreenWidgetView* otherWidget = (OnScreenWidgetView *) view; if(widget.isHidden) continue; if(widget.isFolder && widget.bulkMoveEnabled && [widget.sequenceSet containsObject:@(otherWidget.sequence)]) break; - if((horizontalGuideline.center.y < view.center.y + 2) && (horizontalGuideline.center.y > view.center.y - 2)) { + if((horizontalGuideline.center.y < view.center.y + 1) && (horizontalGuideline.center.y > view.center.y - 1)) { horizontalGuideline.backgroundColor = [UIColor yellowColor]; OnScreenWidgetView.isHorizontallyAligned = true; OnScreenWidgetView.alignedY = view.center.y; @@ -168,8 +168,8 @@ OnScreenWidgetView.isVerticallyAligned = false; for (CALayer *button in self.OSCButtonLayerPool) { // vertical guideline position check if ((layerBeingDragged != button) && !button.isHidden) { - if ((verticalGuideline.center.x < button.position.x + 2) && - (verticalGuideline.center.x > button.position.x - 2)) { + if ((verticalGuideline.center.x < button.position.x + 1) && + (verticalGuideline.center.x > button.position.x - 1)) { verticalGuideline.backgroundColor = [UIColor yellowColor]; OnScreenWidgetView.isVerticallyAligned = true; OnScreenWidgetView.alignedX = button.position.x; @@ -180,7 +180,7 @@ for(UIView* view in self.layoutToolVC.view.subviews){ if ([view isKindOfClass:[OnScreenWidgetView class]] && view != widget) { if(view.isHidden) continue; - if ((verticalGuideline.center.x < view.center.x + 2) && (verticalGuideline.center.x > view.center.x - 2)) { + if ((verticalGuideline.center.x < view.center.x + 1) && (verticalGuideline.center.x > view.center.x - 1)) { verticalGuideline.backgroundColor = [UIColor yellowColor]; OnScreenWidgetView.isVerticallyAligned = true; OnScreenWidgetView.alignedX = view.center.x; diff --git a/VoidLink/PresetConfigs/widgetTemplates.bin b/VoidLink/PresetConfigs/widgetTemplates.bin index ea2d2d79..008d8be3 100644 Binary files a/VoidLink/PresetConfigs/widgetTemplates.bin and b/VoidLink/PresetConfigs/widgetTemplates.bin differ diff --git a/VoidLink/PresetConfigs/widgetTemplatesIPhone.bin b/VoidLink/PresetConfigs/widgetTemplatesIPhone.bin index 87379cf5..65064f75 100644 Binary files a/VoidLink/PresetConfigs/widgetTemplatesIPhone.bin and b/VoidLink/PresetConfigs/widgetTemplatesIPhone.bin differ