fs-danaus
2023-03-30 665b0603d09890014f982fdfbd6ec47938f504b0
Grid/EventMouse.js
@@ -485,11 +485,19 @@
this.Event.Row = this.ARow;
this.GridMouseOver(ev,1);
CancelEvent(ev);
var row = this.ARow, col = this.ACol;
if(Grids.OnDropFile && Grids.OnDropFile(this,row,col,F)) return false;
var row = this.ARow, col = this.ACol, ins = null;
if(Grids.OnDropFile){
   var A = Grids.OnDropFile(this,row,col,F);
   if(A){
      if(typeof(A)!="object") return false;
      if(A[0] && typeof(A[0])=="object" && A[0].Def) row = A[0];
      if(typeof(col)=="string") col = A[1];
      if(A[2]!=null&&typeof(ins)=="string") ins = A[2];
      }
   }
if(row&&col){
   var typ = this.GetType(row,col);
   if(typ=="File" && this.CanEdit(row,col)==1){
   if(typ=="File" && (ins||this.CanEdit(row,col)==1)){
      MS.File;
      var N = [], acc = this.GetAttr(row,col,"Accept");
      if(acc) acc = ToRegExp(acc).replace(/\\\*/g,".*");
@@ -739,7 +747,7 @@
this.GridMouseOver(E);
if(this.Event.Grid=="Grid") return this;
var A = EventToWindow(E); 
for(var i=0;i<Grids.length;i++) {
for(var i=Grids.length-1;i>=0;i--) {
   var G = Grids[i]; if(G && G!=this) {
      var X = A[0] - G.TableX, Y = A[1] - G.TableY; 
      if(X>=0 && X<G.TableWidth && Y>=0 && Y<G.TableHeight){