morsanu
morsanu

Reputation: 985

Mouse wheel event over Raphael element

I need to perform an action if someone uses the wheel when the mouse is positioned over a Raphael element.

I tried several methods but none of it worked. Can you point me in the right direction with an example?

Upvotes: 2

Views: 1561

Answers (1)

qiao
qiao

Reputation: 18219

See live demo at http://jsfiddle.net/qiao/6JJrz/6/ (try mouse wheel up and down on the circle)

I used jQuery.mousewheel plugin taken from https://github.com/brandonaaron/jquery-mousewheel

EDITED: sorry, the original link was outdated, I fixed it now.

Upvotes: 2

Related Questions