Skip to content

Commit

Permalink
Merge pull request dream-num#2 from titanDevelopers/bug/zooming
Browse files Browse the repository at this point in the history
Fix zoom.
  • Loading branch information
titanDevelopers authored Aug 1, 2022
2 parents 4a85ed8 + 4d56b4f commit 123c52b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@kros-sk/luckysheet",
"version": "2.1.13",
"version": "2.1.14",
"main": "dist/luckysheet.cjs.js",
"module": "dist/luckysheet.esm.js",
"browser": "dist/luckysheet.umd.js",
Expand Down
3 changes: 3 additions & 0 deletions src/controllers/zoom.js
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,9 @@ export function zoomInitial(){
document.getElementById('luckysheet').addEventListener(
'wheel',
function (ev) {
if (!ev.ctrlKey || !ev.deltaY) {
return;
}
if (currentWheelZoom === null) {
currentWheelZoom = Store.zoomRatio || 1;
}
Expand Down

0 comments on commit 123c52b

Please sign in to comment.