ohzi-core 6.1.1 → 6.1.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ohzi-core",
3
- "version": "6.1.1",
3
+ "version": "6.1.2",
4
4
  "description": "OHZI Core Library",
5
5
  "source": "src/index.js",
6
6
  "types": "types/index.d.ts",
@@ -44,8 +44,9 @@ export default class ActionSequencer
44
44
 
45
45
  skip()
46
46
  {
47
- this.elapsed_time = this.get_duration();
48
- this.__play_clips(this.elapsed_time, this.elapsed_time + 0.01);
47
+ let duration = this.get_duration();
48
+ this.__play_clips(this.elapsed_time, duration + 0.0001);
49
+ this.elapsed_time = duration;
49
50
  }
50
51
 
51
52
  update(delta_time)
@@ -141,8 +142,8 @@ export default class ActionSequencer
141
142
  {
142
143
  for (let i = 0; i < this.action_events.length; i++)
143
144
  {
144
- if (this.action_events[i].trigger_time >= from &&
145
- this.action_events[i].trigger_time < to)
145
+ if (this.action_events[i].trigger_time > from - Number.EPSILON &&
146
+ this.action_events[i].trigger_time < to + Number.EPSILON)
146
147
  {
147
148
  // console.log("Play event: " + this.action_events[i].action.constructor.name + " at "+ this.action_events[i].trigger_time);
148
149
  this.action_events[i].action.trigger();