Skip to content

Commit

Permalink
Merge pull request #255 from welkinwong/master
Browse files Browse the repository at this point in the history
Fix mouse leaving window is resizer does not disappear
  • Loading branch information
myliang committed Feb 19, 2020
2 parents 20a0578 + db97730 commit d52281a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/component/sheet.js
Expand Up @@ -514,8 +514,14 @@ function sheetInitEvents() {
editor.clear();
overlayerMousedown.call(this, evt);
}
}).on('mousewheel.stop', (evt) => {
})
.on('mousewheel.stop', (evt) => {
overlayerMousescroll.call(this, evt);
})
.on('mouseout', (evt) => {
const { offsetX, offsetY } = evt;
if (offsetY <= 0) colResizer.hide();
if (offsetX <= 0) rowResizer.hide();
});

// slide on mobile
Expand Down

0 comments on commit d52281a

Please sign in to comment.