diff --git a/Source/Editor/Surface/SurfaceStyle.cs b/Source/Editor/Surface/SurfaceStyle.cs index 4fc656823..2997e1d21 100644 --- a/Source/Editor/Surface/SurfaceStyle.cs +++ b/Source/Editor/Surface/SurfaceStyle.cs @@ -244,8 +244,13 @@ namespace FlaxEditor.Surface else icon = hasConnections ? style.Icons.BoxClose : style.Icons.BoxOpen; color *= box.ConnectionsHighlightIntensity + 1; - - // Disable vertex snapping to prevent position jitter/ snapping artefacts for the boxes when zooming the surface + if (box.IsMouseOver) + { + color *= 1.3f; + rect = rect.MakeExpanded(1.0f); + } + + // Disable vertex snapping to prevent position jitter/snapping artefacts for the boxes when zooming the surface var features = Render2D.Features; Render2D.Features = features & ~Render2D.RenderingFeatures.VertexSnapping;