timingsrc 1.2.1 → 1.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.
@@ -9,7 +9,7 @@ export const createSetTimingsrcWithCustomUpdateFunction = (animationFrame, docum
9
9
  };
10
10
  const unsubscribeFunctions = [
11
11
  animationFrame()(() => update()),
12
- on(timingObject, 'update')(() => {
12
+ on(timingObject, 'change')(() => {
13
13
  if (document.visibilityState === 'hidden') {
14
14
  update();
15
15
  }
@@ -67,7 +67,7 @@
67
67
 
68
68
  var unsubscribeFunctions = [animationFrame()(function () {
69
69
  return update();
70
- }), on(timingObject, 'update')(function () {
70
+ }), on(timingObject, 'change')(function () {
71
71
  if (document.visibilityState === 'hidden') {
72
72
  update();
73
73
  }
package/package.json CHANGED
@@ -75,5 +75,5 @@
75
75
  "test": "grunt lint && grunt test"
76
76
  },
77
77
  "types": "build/es2019/module.d.ts",
78
- "version": "1.2.1"
78
+ "version": "1.2.2"
79
79
  }
@@ -23,7 +23,7 @@ export const createSetTimingsrcWithCustomUpdateFunction: TSetTimingsrcWithCustom
23
23
  animationFrame()(() => update()),
24
24
  on(
25
25
  timingObject,
26
- 'update'
26
+ 'change'
27
27
  )(() => {
28
28
  if (document.visibilityState === 'hidden') {
29
29
  update();