func _on_Area2D_input_event(viewport, event, shape_idx):
print(true)
the function is triggered only when the mouse button is released in it and at the same time if the pressed mouse button was entered from outside the object, and not in it.
area2D
---colorRect
---collisionBody2D