javascript - Raphael - event when mouse near element -


i make mouse event triggers when mouse near raphael element. (so guess need know x,y position of mouse. ideas on how might possible?

thank you!

you could, suggest in question, track mouse position , compare position of element.

but that's doing things hard way.

far easier exploit mouseover or mouseenter events.

obviously mouseenter , mouseover triggered when mouse pointer goes on element, rather merely near per question, resolved adding invisible area around element, , having mouse event trigger on that.

this invisible area element positioned in same place raphael element, extending beyond in each direction distance, or same raphael object, make bit bigger , don't draw way edge.

hope helps.


Comments

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -