Use ReactFX's new API.
Correctly detect hit beyond the end of paragraph's text.