@blorkfield/overlay-core 0.4.2 → 0.4.3
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.cjs +7 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1238,6 +1238,13 @@ var OverlayScene = class {
|
|
|
1238
1238
|
}
|
|
1239
1239
|
});
|
|
1240
1240
|
import_matter_js5.default.Composite.add(this.engine.world, this.mouseConstraint);
|
|
1241
|
+
const wheelHandler = this.mouse.mousewheel;
|
|
1242
|
+
if (wheelHandler) {
|
|
1243
|
+
canvas.removeEventListener("mousewheel", wheelHandler);
|
|
1244
|
+
canvas.removeEventListener("DOMMouseScroll", wheelHandler);
|
|
1245
|
+
canvas.removeEventListener("wheel", wheelHandler);
|
|
1246
|
+
}
|
|
1247
|
+
canvas.style.touchAction = "pan-x pan-y";
|
|
1241
1248
|
import_matter_js5.default.Events.on(this.mouseConstraint, "startdrag", this.handleStartDrag);
|
|
1242
1249
|
canvas.addEventListener("click", this.handleCanvasClick);
|
|
1243
1250
|
this.render.mouse = this.mouse;
|