Forums > Javascript

detect hover using JS

February 9, 2011 | 7:11 pm

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

Thanks,
Eric


April 27, 2011 | 3:33 am

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…


April 27, 2011 | 4:01 am

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.


April 27, 2011 | 5:03 pm

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


April 27, 2011 | 7:18 pm

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


Viewing 5 posts - 1 through 5 (of 5 total)