@meta2d/core 1.0.50 → 1.0.51
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/package.json +1 -1
- package/src/canvas/canvas.js +1 -1
- package/src/canvas/canvas.js.map +1 -1
- package/src/core.d.ts +1 -1
- package/src/core.js +202 -98
- package/src/core.js.map +1 -1
- package/src/event/event.d.ts +2 -0
- package/src/event/event.js.map +1 -1
- package/src/options.d.ts +1 -0
- package/src/options.js.map +1 -1
- package/src/pen/model.d.ts +3 -1
- package/src/pen/model.js.map +1 -1
package/package.json
CHANGED
package/src/canvas/canvas.js
CHANGED
|
@@ -279,7 +279,7 @@ var Canvas = /** @class */ (function () {
|
|
|
279
279
|
}
|
|
280
280
|
if (Math.abs(e.wheelDelta) > 100) {
|
|
281
281
|
//鼠标滚轮滚动 scroll模式下是上下滚动而不是缩放
|
|
282
|
-
if (_this.store.options.scroll && _this.scroll) {
|
|
282
|
+
if (_this.store.options.scroll && _this.scroll && !_this.store.options.scrollButScale) {
|
|
283
283
|
_this.scroll.wheel(e.deltaY < 0);
|
|
284
284
|
return;
|
|
285
285
|
}
|