@d3p1/img2pxl 3.1.11 → 3.1.12
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/core/index.js
CHANGED
|
@@ -105,7 +105,7 @@ class Jn {
|
|
|
105
105
|
*/
|
|
106
106
|
#t() {
|
|
107
107
|
const e = document.createElement("canvas");
|
|
108
|
-
document.body.append(e), this.dpr = Math.min(window.devicePixelRatio, 2);
|
|
108
|
+
e.style.touchAction = "none", document.body.append(e), this.dpr = Math.min(window.devicePixelRatio, 2);
|
|
109
109
|
let t = !1;
|
|
110
110
|
this.dpr <= 1 && (t = !0), this.renderer = new f.WebGLRenderer({
|
|
111
111
|
canvas: e,
|
|
@@ -5602,7 +5602,7 @@ class Uo {
|
|
|
5602
5602
|
*/
|
|
5603
5603
|
#i(e) {
|
|
5604
5604
|
const t = e.target;
|
|
5605
|
-
this.coord.x = (e.offsetX / t.
|
|
5605
|
+
this.coord.x = (e.offsetX / t.clientWidth - 0.5) * 2, this.coord.y = -(e.offsetY / t.clientHeight - 0.5) * 2;
|
|
5606
5606
|
}
|
|
5607
5607
|
/**
|
|
5608
5608
|
* Process pointer leave
|
|
@@ -6237,4 +6237,4 @@ class Do {
|
|
|
6237
6237
|
export {
|
|
6238
6238
|
Do as M
|
|
6239
6239
|
};
|
|
6240
|
-
//# sourceMappingURL=main-
|
|
6240
|
+
//# sourceMappingURL=main-C6W_5yDn.js.map
|