鼠标移动事件在火狐中不起作用

MouseMove event not working in firefox

本文关键字:不起作用 火狐 移动 事件 鼠标      更新时间:2023-09-26

绑定了路径元素的鼠标移动事件,如下所示

    $(seriesRender.gSeriesGroupEle.childNodes[pointIndex]).bind('mousemove', seriesRender.onChartMove);
 onChartMove: function(evt){
    debugger;
      },

此功能在IE和chrome中触发,但在Firefox中不触发,还有其他方法可以做到这一点吗

我前段时间做过这样的,

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

另请参阅下面的演示链接

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

我遇到了这个问题,鼠标移动事件无法可靠地工作,仅在按钮状态或焦点窗口更改时才触发。我通过注销并重新登录我的桌面环境来解决此问题。