Skip to content
This repository has been archived by the owner on Mar 28, 2024. It is now read-only.

Commit

Permalink
fix(mousemove hook error): fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tubiaoge committed Nov 10, 2020
1 parent a596d2f commit 89b93e7
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions src/controllers/handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -1535,14 +1535,16 @@ export default function luckysheetHandler() {

let luckysheetTableContent = $("#luckysheetTableContent").get(0).getContext("2d");

method.createHookFunction("sheetMousemove", Store.flowdata[row_index][col_index], {
r:row_index,
c:col_index,
"start_r": row_pre,
"start_c": col_pre,
"end_r": row,
"end_c": col
}, sheetFile,moveState,luckysheetTableContent);
if(Store.flowdata && Store.flowdata[row_index]){
method.createHookFunction("sheetMousemove", Store.flowdata[row_index][col_index], {
r:row_index,
c:col_index,
"start_r": row_pre,
"start_c": col_pre,
"end_r": row,
"end_c": col
}, sheetFile,moveState,luckysheetTableContent);
}
// }
}

Expand Down

0 comments on commit 89b93e7

Please sign in to comment.