user2918741
user2918741

Reputation: 87

MouseMove event not working in firefox

Binded a mousemove event for a path element as below

    $(seriesRender.gSeriesGroupEle.childNodes[pointIndex]).bind('mousemove', seriesRender.onChartMove);

 onChartMove: function(evt){
    debugger;
      },

this function get triggered in IE and chrome, but not in firefox, is there any other way to do it

Upvotes: 0

Views: 2094

Answers (2)

Jasen
Jasen

Reputation: 12442

I had this problem the mousemove event was not working reliably, only firing then the button state or focussed window changed. I cured this by logging out of and back in to my desktop environment.

Upvotes: 0

Hariharan
Hariharan

Reputation: 3263

i had did some time ago like,

$('#control-vol').bind('mousedown', function(e){
    $('#control-vol').bind('mousemove', function(e){
         // my stuff
    });

    $('#control-vol').bind('mouseup',function(){
        $('#control-vol').unbind('mousemove')
    });
});

Also refer below demo link

http://jsbin.com/icuso/1/edit

Upvotes: 3

Related Questions