Skip to content

Commit

Permalink
Merge branch 'release/2.2.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
vankeisb committed Apr 24, 2023
2 parents e4682f3 + 18af195 commit 3207ac5
Show file tree
Hide file tree
Showing 13 changed files with 611 additions and 447 deletions.
29 changes: 29 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,34 @@
# Changelog

## v2.2.1 (02/09/2022)

#### closed

- [**closed**] support unmount [#87](https://github.com/vankeisb/react-tea-cup/pull/87)

---

## v2.2.0 (10/02/2022)

#### closed

- [**closed**] Adding support for React 17 [#73](https://github.com/vankeisb/react-tea-cup/pull/73)
- [**closed**] eventlisteners with options [#66](https://github.com/vankeisb/react-tea-cup/pull/66)

#### dependencies

- [**dependencies**] Bump color-string from 1.5.3 to 1.9.0 [#76](https://github.com/vankeisb/react-tea-cup/pull/76)
- [**dependencies**] Bump ws from 5.2.2 to 5.2.3 [#74](https://github.com/vankeisb/react-tea-cup/pull/74)
- [**dependencies**] Bump tar from 4.4.13 to 4.4.19 [#75](https://github.com/vankeisb/react-tea-cup/pull/75)
- [**dependencies**] Bump merge-deep from 3.0.2 to 3.0.3 [#68](https://github.com/vankeisb/react-tea-cup/pull/68)
- [**dependencies**] Bump path-parse from 1.0.6 to 1.0.7 [#69](https://github.com/vankeisb/react-tea-cup/pull/69)
- [**dependencies**] Bump tmpl from 1.0.4 to 1.0.5 [#70](https://github.com/vankeisb/react-tea-cup/pull/70)
- [**dependencies**] Bump url-parse from 1.5.1 to 1.5.3 [#71](https://github.com/vankeisb/react-tea-cup/pull/71)
- [**dependencies**] Bump url-parse from 1.4.7 to 1.5.1 [#64](https://github.com/vankeisb/react-tea-cup/pull/64)
- [**dependencies**] Bump hosted-git-info from 2.8.8 to 2.8.9 [#65](https://github.com/vankeisb/react-tea-cup/pull/65)

---

## v2.1.0 (03/05/2021)

#### closed
Expand Down
2 changes: 1 addition & 1 deletion core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tea-cup-core",
"version": "2.2.1",
"version": "2.2.2",
"description": "react-tea-cup core classes and utilities (Maybe etc)",
"author": "Rémi Van Keisbelck <[email protected]>",
"license": "MIT",
Expand Down
19 changes: 3 additions & 16 deletions core/src/TeaCup/Animation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,22 +30,12 @@ let subs: Array<RafSub<any>> = [];
let ticking = false;

function tick() {
// console.log("tick()");
if (!ticking) {
ticking = true;
const subsNow = [...subs];
// console.log("tick() subsNow=" + subsNow);
if (subsNow.length > 0) {
requestAnimationFrame((t: number) => {
// console.log("tick() trigger subsNow=" + subsNow);
subsNow.forEach((s) => s.trigger(t));
ticking = false;
// console.log("tick() recursing");
tick();
});
} else {
requestAnimationFrame((t: number) => {
subs.forEach((s) => s.trigger(t));
ticking = false;
}
});
}
}

Expand All @@ -66,9 +56,6 @@ class RafSub<M> extends Sub<M> {
protected onRelease() {
super.onRelease();
subs = subs.filter((s) => s !== this);
if (subs.length === 0) {
ticking = false;
}
}

trigger(t: number) {
Expand Down
Loading

0 comments on commit 3207ac5

Please sign in to comment.