@rive-app/canvas-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.
Files changed (3) hide show
  1. package/package.json +1 -1
  2. package/rive.js +7 -1
  3. package/rive.js.map +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rive-app/canvas-single",
3
- "version": "1.0.89",
3
+ "version": "1.0.90",
4
4
  "description": "Rive's high-level canvas based web api all in one js file.",
5
5
  "main": "rive.js",
6
6
  "homepage": "https://rive.app",
package/rive.js CHANGED
@@ -134,7 +134,7 @@ if(m.preInit)for("function"==typeof m.preInit&&(m.preInit=[m.preInit]);0<m.preIn
134
134
  /* 2 */
135
135
  /***/ ((module) => {
136
136
 
137
- module.exports = JSON.parse('{"name":"@rive-app/canvas-single","version":"1.0.89","description":"Rive\'s high-level canvas based web api all in one js file.","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}}');
137
+ module.exports = JSON.parse('{"name":"@rive-app/canvas-single","version":"1.0.90","description":"Rive\'s high-level canvas based web api all in one js file.","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}}');
138
138
 
139
139
  /***/ }),
140
140
  /* 3 */
@@ -201,6 +201,8 @@ const registerTouchInteractions = ({
201
201
 
202
202
  switch (event.type) {
203
203
  // Pointer moving/hovering on the canvas
204
+ case "mouseover":
205
+ case "mouseout":
204
206
  case "mousemove": {
205
207
  for (const stateMachine of stateMachines) {
206
208
  stateMachine.pointerMove(transformedX, transformedY);
@@ -225,10 +227,14 @@ const registerTouchInteractions = ({
225
227
  }
226
228
  };
227
229
  const callback = mouseCallback.bind(undefined);
230
+ canvas.addEventListener("mouseover", callback);
231
+ canvas.addEventListener("mouseout", callback);
228
232
  canvas.addEventListener("mousemove", callback);
229
233
  canvas.addEventListener("mousedown", callback);
230
234
  canvas.addEventListener("mouseup", callback);
231
235
  return () => {
236
+ canvas.removeEventListener("mouseover", callback);
237
+ canvas.removeEventListener("mouseout", callback);
232
238
  canvas.removeEventListener("mousemove", callback);
233
239
  canvas.removeEventListener("mousedown", callback);
234
240
  canvas.removeEventListener("mouseup", callback);