tsparticles 2.2.1 → 2.2.2
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/tsparticles.bundle.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Demo / Generator : https://particles.js.org/
|
|
5
5
|
* GitHub : https://www.github.com/matteobruni/tsparticles
|
|
6
6
|
* How to use? : Check the GitHub README
|
|
7
|
-
* v2.2.
|
|
7
|
+
* v2.2.2
|
|
8
8
|
*/
|
|
9
9
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
10
10
|
if(typeof exports === 'object' && typeof module === 'object')
|
|
@@ -3144,13 +3144,13 @@ function alterHsl(color, type, value) {
|
|
|
3144
3144
|
;// CONCATENATED MODULE: ../../engine/dist/esm/Core/Utils/Constants.js
|
|
3145
3145
|
const generatedAttribute = "generated";
|
|
3146
3146
|
const touchEndEvent = "touchend";
|
|
3147
|
-
const mouseDownEvent = "
|
|
3148
|
-
const mouseUpEvent = "
|
|
3149
|
-
const mouseMoveEvent = "
|
|
3147
|
+
const mouseDownEvent = "pointerdown";
|
|
3148
|
+
const mouseUpEvent = "pointerup";
|
|
3149
|
+
const mouseMoveEvent = "pointermove";
|
|
3150
3150
|
const touchStartEvent = "touchstart";
|
|
3151
3151
|
const touchMoveEvent = "touchmove";
|
|
3152
|
-
const mouseLeaveEvent = "
|
|
3153
|
-
const mouseOutEvent = "
|
|
3152
|
+
const mouseLeaveEvent = "pointerleave";
|
|
3153
|
+
const mouseOutEvent = "pointerout";
|
|
3154
3154
|
const touchCancelEvent = "touchcancel";
|
|
3155
3155
|
const resizeEvent = "resize";
|
|
3156
3156
|
const visibilityChangeEvent = "visibilitychange";
|
|
@@ -3943,7 +3943,7 @@ class EventListeners {
|
|
|
3943
3943
|
let pos;
|
|
3944
3944
|
const canvas = container.canvas.element;
|
|
3945
3945
|
|
|
3946
|
-
if (e.type.startsWith("
|
|
3946
|
+
if (e.type.startsWith("pointer")) {
|
|
3947
3947
|
this.canPush = true;
|
|
3948
3948
|
const mouseEvent = e;
|
|
3949
3949
|
|
|
@@ -13575,7 +13575,7 @@ class Connector extends ExternalInteractorBase {
|
|
|
13575
13575
|
const container = Connector_classPrivateFieldGet(this, _Connector_container, "f"),
|
|
13576
13576
|
options = container.actualOptions;
|
|
13577
13577
|
|
|
13578
|
-
if (options.interactivity.events.onHover.enable && container.interactivity.status === "
|
|
13578
|
+
if (options.interactivity.events.onHover.enable && container.interactivity.status === "pointermove") {
|
|
13579
13579
|
const mousePos = container.interactivity.mouse.position;
|
|
13580
13580
|
|
|
13581
13581
|
if (!container.retina.connectModeDistance || container.retina.connectModeDistance < 0 || !container.retina.connectModeRadius || container.retina.connectModeRadius < 0 || !mousePos) {
|