@rive-app/webgl-single 1.0.89 → 1.0.90
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/rive.js +7 -1
- package/rive.js.map +1 -1
package/package.json
CHANGED
package/rive.js
CHANGED
|
@@ -167,7 +167,7 @@ if(h.preInit)for("function"==typeof h.preInit&&(h.preInit=[h.preInit]);0<h.preIn
|
|
|
167
167
|
/* 2 */
|
|
168
168
|
/***/ ((module) => {
|
|
169
169
|
|
|
170
|
-
module.exports = JSON.parse('{"name":"@rive-app/webgl-single","version":"1.0.
|
|
170
|
+
module.exports = JSON.parse('{"name":"@rive-app/webgl-single","version":"1.0.90","description":"Rive\'s webgl based web api with bundled wasm.","main":"rive.js","homepage":"https://rive.app","repository":{"type":"git","url":"https://github.com/rive-app/rive-wasm/tree/master/js"},"keywords":["rive","animation"],"author":"Rive","contributors":["Luigi Rosso <luigi@rive.app> (https://rive.app)","Maxwell Talbot <max@rive.app> (https://rive.app)","Arthur Vivian <arthur@rive.app> (https://rive.app)","Umberto Sonnino <umberto@rive.app> (https://rive.app)","Matthew Sullivan <matt.j.sullivan@gmail.com> (mailto:matt.j.sullivan@gmail.com)"],"license":"MIT","files":["rive.js","rive.js.map","rive.d.ts","rive_advanced.mjs.d.ts"],"typings":"rive.d.ts","dependencies":{},"browser":{"fs":false,"path":false}}');
|
|
171
171
|
|
|
172
172
|
/***/ }),
|
|
173
173
|
/* 3 */
|
|
@@ -234,6 +234,8 @@ const registerTouchInteractions = ({
|
|
|
234
234
|
|
|
235
235
|
switch (event.type) {
|
|
236
236
|
// Pointer moving/hovering on the canvas
|
|
237
|
+
case "mouseover":
|
|
238
|
+
case "mouseout":
|
|
237
239
|
case "mousemove": {
|
|
238
240
|
for (const stateMachine of stateMachines) {
|
|
239
241
|
stateMachine.pointerMove(transformedX, transformedY);
|
|
@@ -258,10 +260,14 @@ const registerTouchInteractions = ({
|
|
|
258
260
|
}
|
|
259
261
|
};
|
|
260
262
|
const callback = mouseCallback.bind(undefined);
|
|
263
|
+
canvas.addEventListener("mouseover", callback);
|
|
264
|
+
canvas.addEventListener("mouseout", callback);
|
|
261
265
|
canvas.addEventListener("mousemove", callback);
|
|
262
266
|
canvas.addEventListener("mousedown", callback);
|
|
263
267
|
canvas.addEventListener("mouseup", callback);
|
|
264
268
|
return () => {
|
|
269
|
+
canvas.removeEventListener("mouseover", callback);
|
|
270
|
+
canvas.removeEventListener("mouseout", callback);
|
|
265
271
|
canvas.removeEventListener("mousemove", callback);
|
|
266
272
|
canvas.removeEventListener("mousedown", callback);
|
|
267
273
|
canvas.removeEventListener("mouseup", callback);
|