In the moment Porro focused on the player. Of course he's focusing on the ball as well. That;s football. However, he made a decision to raise his arm to give the player a nudge. Otherwise, the arm has no need to be there. That's why I have no sympthy with him getting caught.
Now whether a referee should let play continue or blow the whistle for a foul, or not, once again comes down to the guidelines given to him. In my mind he has no choice but to blow in his current role. We know that offsides follow the other logic and we see play continuing and VAR used retrospectively. I've never seen an example of where a referee plays on for what he perceives is a foul though. That is the on pitch refs job. We see some checks after goals to see if a ref may have missed them though.
We also bash referees all day for no longer being brave enough to make decisions in the moment and depending on the tech too much. You can't have it both ways right?