Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,6 @@ internal static class MouseUiSimulationValidator
$"Drag actions only support Left button (uGUI ignores non-left drags), got: {parameters.Button}");
}

if (parameters.BypassRaycast && !SupportsBypassRaycast(parameters.Action))
{
return MouseUiSimulationResponseFactory.CreateFailure(parameters, "BypassRaycast is not supported for this action.");
}

if (parameters.BypassRaycast &&
RequiresBypassTargetPath(parameters.Action) &&
string.IsNullOrWhiteSpace(parameters.TargetPath))
Expand All @@ -89,13 +84,6 @@ private static bool RequiresIdlePointer(MouseAction action)
return action == MouseAction.Click || action == MouseAction.Drag || action == MouseAction.LongPress;
}

private static bool SupportsBypassRaycast(MouseAction action)
{
return action == MouseAction.Click
|| action == MouseAction.LongPress
|| IsDragAction(action);
}

private static bool RequiresBypassTargetPath(MouseAction action)
{
return action == MouseAction.Click
Expand Down
Loading