2017-10-18 6 views
2

GetOrgChartの最新バージョンを私の会社のウェブサイトで使用しようとしていますが、ウェブサイトの最新バージョンはFirefoxとChromeでは正常に動作しません。マウスのスクロールと移動は機能しませんが、IEでは正常に動作します。私は昨年からWay Back Machineを使って作業バージョンを見つけましたが、2つを比較するとあまりにも多くの変更があり、何が間違っているかを判断するにはJavaScriptについて十分に分かりません。GetOrgChart ChromeとFirefoxで壊れたマウスの動き

答えて

1

私は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) 
     } 
関連する問題