@leankylin-sheet/core 2.0.0 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -66360,18 +66360,11 @@ function handleGlobalWheel(ctx, e, cache, scrollbarX, scrollbarY) {
66360
66360
  var scrollLeft = scrollbarX.scrollLeft;
66361
66361
  var scrollTop = scrollbarY.scrollTop;
66362
66362
  if (e.deltaY !== 0) {
66363
- if (e.deltaY > 0) {
66364
- scrollTop += 20 * ctx.zoomRatio;
66365
- } else {
66366
- scrollTop -= 20 * ctx.zoomRatio;
66367
- }
66363
+ scrollTop += e.deltaY * ctx.zoomRatio;
66368
66364
  scrollbarY.scrollTop = scrollTop;
66369
- } else if (e.deltaX !== 0) {
66370
- if (e.deltaX > 0) {
66371
- scrollLeft += 20 * ctx.zoomRatio;
66372
- } else {
66373
- scrollLeft -= 20 * ctx.zoomRatio;
66374
- }
66365
+ }
66366
+ if (e.deltaX !== 0) {
66367
+ scrollLeft += e.deltaX * ctx.zoomRatio;
66375
66368
  scrollbarX.scrollLeft = scrollLeft;
66376
66369
  }
66377
66370
  e.preventDefault();
package/dist/index.js CHANGED
@@ -66370,18 +66370,11 @@ function handleGlobalWheel(ctx, e, cache, scrollbarX, scrollbarY) {
66370
66370
  var scrollLeft = scrollbarX.scrollLeft;
66371
66371
  var scrollTop = scrollbarY.scrollTop;
66372
66372
  if (e.deltaY !== 0) {
66373
- if (e.deltaY > 0) {
66374
- scrollTop += 20 * ctx.zoomRatio;
66375
- } else {
66376
- scrollTop -= 20 * ctx.zoomRatio;
66377
- }
66373
+ scrollTop += e.deltaY * ctx.zoomRatio;
66378
66374
  scrollbarY.scrollTop = scrollTop;
66379
- } else if (e.deltaX !== 0) {
66380
- if (e.deltaX > 0) {
66381
- scrollLeft += 20 * ctx.zoomRatio;
66382
- } else {
66383
- scrollLeft -= 20 * ctx.zoomRatio;
66384
- }
66375
+ }
66376
+ if (e.deltaX !== 0) {
66377
+ scrollLeft += e.deltaX * ctx.zoomRatio;
66385
66378
  scrollbarX.scrollLeft = scrollLeft;
66386
66379
  }
66387
66380
  e.preventDefault();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leankylin-sheet/core",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.esm.js",
6
6
  "typings": "dist/index.d.ts",
@@ -10,7 +10,7 @@
10
10
  "repository": "http://114.55.85.79:19999/leankylin-front/leankylin-sheet",
11
11
  "license": "MIT",
12
12
  "dependencies": {
13
- "@leankylin-sheet/formula-parser": "^2.0.0",
13
+ "@leankylin-sheet/formula-parser": "^2.0.1",
14
14
  "dayjs": "^1.11.0",
15
15
  "immer": "^9.0.12",
16
16
  "lodash": "^4.17.21",