Javascript GetOrgChart鼠标移动在Chrome和Firefox中中断

Javascript GetOrgChart鼠标移动在Chrome和Firefox中中断,javascript,getorgchart,Javascript,Getorgchart,我正试图让GetOrgChart的最新版本在我的公司网站上运行,但他们网站上的最新版本在Firefox和Chrome中无法正常工作。鼠标滚动和移动不起作用,但它在IE中工作得很好。我发现使用去年的Way Back机器有一个工作版本,但在比较这两个版本时,有太多的变化,我对JavaScript了解不够,无法找出问题所在。我使用的是GetOrgChart版本2.4.8 我有一个类似的问题与运动和箭头没有工作或显示在一些机器上,尽管使用相同版本的铬。但是如果您更新了getorgchart.js文件,特

我正试图让GetOrgChart的最新版本在我的公司网站上运行,但他们网站上的最新版本在Firefox和Chrome中无法正常工作。鼠标滚动和移动不起作用,但它在IE中工作得很好。我发现使用去年的Way Back机器有一个工作版本,但在比较这两个版本时,有太多的变化,我对JavaScript了解不够,无法找出问题所在。

我使用的是GetOrgChart版本2.4.8 我有一个类似的问题与运动和箭头没有工作或显示在一些机器上,尽管使用相同版本的铬。但是如果您更新了getorgchart.js文件,特别是下面的代码,问题就会得到解决。 因此,搜索此代码块并将其从

if (this.config.enableMove) {
        if ("ontouchstart" in window) {
            this._q(this._X._t, "touchstart", this._y, "canvasContainer");
            this._q(this._X._t, "touchmove", this._b, "canvasContainer");
            this._q(this._X._t, "touchend", this._g, "canvasContainer")
        } else {
            this._q(this._X._zr, "mousedown", this._aS);
            this._q(this._X._am, "mousedown", this._aS);
            this._q(this._X._Q, "mousedown", this._aS);
            this._q(this._X._zB, "mousedown", this._aS);
            this._q(this._X._t, "mousemove", this._aA);
            this._q(this._X._t, "mousedown", this._aQ);
            this._q(this._X._t, "mouseup", this._aZ);
            this._q(this._X._t, "mouseleave", this._aZ)
       }
    }
进入:

if (this.config.enableMove) {
            this._q(this._X._zr, "mousedown", this._aS);
            this._q(this._X._am, "mousedown", this._aS);
            this._q(this._X._Q, "mousedown", this._aS);
            this._q(this._X._zB, "mousedown", this._aS);
            this._q(this._X._t, "mousemove", this._aA);
            this._q(this._X._t, "mousedown", this._aQ);
            this._q(this._X._t, "mouseup", this._aZ);
            this._q(this._X._t, "mouseleave", this._aZ)
       }