* Dont show "add comment" tooltip when text is selected via search
* remove the tooltip if selection changes
* handle empty selection
* use tr.effects.some for mouseUp check
* avoid creating new create function each time
* use useEventListener
GitOrigin-RevId: 18d96fe6fdefcd55f88849cf880f804d4c963f4d