detect hover using JS

elmiller's icon

Anyone know if there a way to detect hovering over an object using JS without using [hover]?

Thanks,
Eric

Griotspeak's icon

Why can't you use [hover]?

anyway, jsui and use of global objects to communicate state might do it, but [hover] is really the best option i can think of...

elmiller's icon

When I wrote this I was working on some abstractions, which, when added to a patcher, needed to detect hovering in the parent patcher. Since I wanted to be able to use these externals in patches which may not have hover objects already, relying on hover wasn't an option.

Griotspeak's icon

well, that is a bit rough. How did you work it out? HID wizardry or something?

elmiller's icon

To be honest I just moved onto another project and forgot about it...