Skip to content

Commit

Permalink
chore: cleanup code
Browse files Browse the repository at this point in the history
  • Loading branch information
Wenzhao Hu authored and Wenzhao Hu committed Jul 10, 2023
1 parent ea9c680 commit 2054fb4
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions packages/base-sheets/src/View/CanvasView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,18 +130,6 @@ export class CanvasView {
sheet.setZoomRatio(nextRatio);

e.preventDefault();

// if (scene.scaleX + ratioDelta > 4) {
// // TODO@huwenzhao: this is not correct, we are not changing in sheetConfig.zoomRatio
// scene.scale(4, 4);
// } else if (scene.scaleX + ratioDelta < 0.1) {
// scene.scale(0.1, 0.1);
// } else {
// const value = e.deltaY > 0 ? 0.1 : -0.1;

// sheet.setZoomRatio(sheet.getZoomRatio() + value);
// // scene.scaleBy(scrollNum, scrollNum);
// }
} else {
viewMain.onMouseWheel(e, state);
}
Expand Down

0 comments on commit 2054fb4

Please sign in to comment.