Some events aren’t available unfortunately, scroll is one of them, too. I don’t think there’s any workaround. I assume focus or focusin isn’t working either? Otherwise this could be a starting point for a workaround…
I still have to see that onFocus, but onBlur was more needed since I work in React and wanted to have that validation if the user leaves the input empty. My goal was to use the input element for the numbers and when it’s left empty and loses focus it automatically gets filled with the min value that’s defined for that component.
This already worked perfectly in React and using the Adobe React Spectrum package but now I have to rewrite some of the code in order to get it working in UXP. At least from the UI part
The problem here is that I wanted to have negative integer numbers for the input, so starting with minus (-). That’s why I used type=“text” and made it possible for the input to be empty in order to type that (-) as a first character.
Guess that we would have to wait until Adobe makes it available for us and use some other functionality instead.
Oh nice, then I might finally be able to implement custom steps on scroll for number inputs, since that’s still not possible out of the box. It always increased by 0.1 by default.
If Focusin works, you could listen to that on the whole document and then check if the active element is your input. If it’s not, but has been before, it effectively got blurred.