Skip to content

Commit 3207ac5

Browse files
committed
Merge branch 'release/2.2.2'
2 parents e4682f3 + 18af195 commit 3207ac5

13 files changed

Lines changed: 611 additions & 447 deletions

File tree

CHANGELOG.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,34 @@
11
# Changelog
22

3+
## v2.2.1 (02/09/2022)
4+
5+
#### closed
6+
7+
- [**closed**] support unmount [#87](https://github.com/vankeisb/react-tea-cup/pull/87)
8+
9+
---
10+
11+
## v2.2.0 (10/02/2022)
12+
13+
#### closed
14+
15+
- [**closed**] Adding support for React 17 [#73](https://github.com/vankeisb/react-tea-cup/pull/73)
16+
- [**closed**] eventlisteners with options [#66](https://github.com/vankeisb/react-tea-cup/pull/66)
17+
18+
#### dependencies
19+
20+
- [**dependencies**] Bump color-string from 1.5.3 to 1.9.0 [#76](https://github.com/vankeisb/react-tea-cup/pull/76)
21+
- [**dependencies**] Bump ws from 5.2.2 to 5.2.3 [#74](https://github.com/vankeisb/react-tea-cup/pull/74)
22+
- [**dependencies**] Bump tar from 4.4.13 to 4.4.19 [#75](https://github.com/vankeisb/react-tea-cup/pull/75)
23+
- [**dependencies**] Bump merge-deep from 3.0.2 to 3.0.3 [#68](https://github.com/vankeisb/react-tea-cup/pull/68)
24+
- [**dependencies**] Bump path-parse from 1.0.6 to 1.0.7 [#69](https://github.com/vankeisb/react-tea-cup/pull/69)
25+
- [**dependencies**] Bump tmpl from 1.0.4 to 1.0.5 [#70](https://github.com/vankeisb/react-tea-cup/pull/70)
26+
- [**dependencies**] Bump url-parse from 1.5.1 to 1.5.3 [#71](https://github.com/vankeisb/react-tea-cup/pull/71)
27+
- [**dependencies**] Bump url-parse from 1.4.7 to 1.5.1 [#64](https://github.com/vankeisb/react-tea-cup/pull/64)
28+
- [**dependencies**] Bump hosted-git-info from 2.8.8 to 2.8.9 [#65](https://github.com/vankeisb/react-tea-cup/pull/65)
29+
30+
---
31+
332
## v2.1.0 (03/05/2021)
433

534
#### closed

core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "tea-cup-core",
3-
"version": "2.2.1",
3+
"version": "2.2.2",
44
"description": "react-tea-cup core classes and utilities (Maybe etc)",
55
"author": "Rémi Van Keisbelck <remi@rvkb.com>",
66
"license": "MIT",

core/src/TeaCup/Animation.ts

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -30,22 +30,12 @@ let subs: Array<RafSub<any>> = [];
3030
let ticking = false;
3131

3232
function tick() {
33-
// console.log("tick()");
3433
if (!ticking) {
3534
ticking = true;
36-
const subsNow = [...subs];
37-
// console.log("tick() subsNow=" + subsNow);
38-
if (subsNow.length > 0) {
39-
requestAnimationFrame((t: number) => {
40-
// console.log("tick() trigger subsNow=" + subsNow);
41-
subsNow.forEach((s) => s.trigger(t));
42-
ticking = false;
43-
// console.log("tick() recursing");
44-
tick();
45-
});
46-
} else {
35+
requestAnimationFrame((t: number) => {
36+
subs.forEach((s) => s.trigger(t));
4737
ticking = false;
48-
}
38+
});
4939
}
5040
}
5141

@@ -66,9 +56,6 @@ class RafSub<M> extends Sub<M> {
6656
protected onRelease() {
6757
super.onRelease();
6858
subs = subs.filter((s) => s !== this);
69-
if (subs.length === 0) {
70-
ticking = false;
71-
}
7259
}
7360

7461
trigger(t: number) {

0 commit comments

Comments
 (0)