diff --git a/Source/Editor/Surface/VisjectSurface.Input.cs b/Source/Editor/Surface/VisjectSurface.Input.cs
index d1f394f3b..510ac1939 100644
--- a/Source/Editor/Surface/VisjectSurface.Input.cs
+++ b/Source/Editor/Surface/VisjectSurface.Input.cs
@@ -99,18 +99,6 @@ namespace FlaxEditor.Surface
///
public event Window.MouseWheelDelegate CustomMouseWheel;
- ///
- /// Gets the node under the mouse location.
- ///
- /// The node or null if no intersection.
- public SurfaceNode GetNodeUnderMouse()
- {
- var pos = _rootControl.PointFromParent(ref _mousePos);
- if (_rootControl.GetChildAt(pos) is SurfaceNode node)
- return node;
- return null;
- }
-
///
/// Gets the control under the mouse location.
///
@@ -118,9 +106,7 @@ namespace FlaxEditor.Surface
public SurfaceControl GetControlUnderMouse()
{
var pos = _rootControl.PointFromParent(ref _mousePos);
- if (_rootControl.GetChildAtRecursive(pos) is SurfaceControl control)
- return control;
- return null;
+ return _rootControl.GetChildAt(pos) as SurfaceControl;
}
private void UpdateSelectionRectangle()