2
我想爲我的公司網站獲取最新版本的GetOrgChart,但是他們網站上的最新版本在Firefox和Chrome中無法正常工作。鼠標滾動和移動不起作用,但它在IE中正常工作。我發現去年使用Way Back Machine的工作版本,但是當比較兩者時,發生了太多變化,而我對JavaScript的瞭解不夠,無法找出問題所在。GetOrgChart在Chrome和Firefox中破壞的鼠標移動
我想爲我的公司網站獲取最新版本的GetOrgChart,但是他們網站上的最新版本在Firefox和Chrome中無法正常工作。鼠標滾動和移動不起作用,但它在IE中正常工作。我發現去年使用Way Back Machine的工作版本,但是當比較兩者時,發生了太多變化,而我對JavaScript的瞭解不夠,無法找出問題所在。GetOrgChart在Chrome和Firefox中破壞的鼠標移動
我正在使用GetOrgChart版本2.4.8 我有一個類似的問題,即使使用相同版本的chrome,運動和箭頭也無法工作或在某些機器上顯示。但如果您更新了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)
}