todotresde
todotresde

Reputation: 1790

D3 mouse release event

I am looking for release event on D3.

Actually, my examples has:

.on("mouseover", function(data){...} )
.on("mousemove", function(data){...} )
.on("mouseout", function(data){...} )

which works perfect, but if I try to do something like:

.on("release", function(data){...} )

it doesn't works.

Any idea?

Upvotes: 6

Views: 5961

Answers (2)

todotresde
todotresde

Reputation: 1790

Done!

The attribute is:

.on("mouseup", function(data){alert(1);} );

The problem also was related where I

Upvotes: 11

Lars Kotthoff
Lars Kotthoff

Reputation: 109282

For reference -- D3 only supports native DOM events.

Upvotes: 0

Related Questions