In this you are passing a world coordinate into screen_to_world() which probably fails because it is not in the correct coordinate space and will fail the call to is_within_viewport().
I have a related question here.
In this you are passing a world coordinate into screen_to_world() which probably fails because it is not in the correct coordinate space and will fail the call to is_within_viewport().
I have a related question here.