Previously to 5.3.5 the clicked gameObject was put into EventSystem.current.currentSelectedGameObject right after click without my help. So I could knew from any part of code what was clicked right after click. Now it looks like I have to wait for 1 Update.
Try it with eventsystem, raycaycast and simple ui Image not Button.
I misunderstood your question. I do not know about CurrentSelectedGAmeobject.
You could however easily create that reference from the onpointerdown method, I.e. Static class variable.
Don’t have access to computer right now to test event system behavior, I am on 5.3.4, so could check later if it has changed. But possibly its script exec order? Wait 1 update sounds as expected?