Skip to content
This repository was archived by the owner on Apr 29, 2021. It is now read-only.

Commit b1fdb68

Browse files
committed
slider
1 parent 78b4370 commit b1fdb68

File tree

8 files changed

+1905
-13
lines changed

8 files changed

+1905
-13
lines changed

Runtime/gestures/team.cs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ internal GestureArenaEntry _add(int pointer, GestureArenaMember member) {
7070
D.assert(this._pointer == pointer);
7171

7272
this._members.Add(member);
73-
this._entry = this._entry ?? this._owner._gestureArena.add(pointer, this);
73+
this._entry = this._entry ?? GestureBinding.instance.gestureArena.add(pointer, this);
7474
return new _CombiningGestureArenaEntry(this, member);
7575
}
7676

@@ -87,19 +87,14 @@ internal void _resolve(GestureArenaMember member, GestureDisposition disposition
8787
}
8888
}
8989
else {
90+
D.assert(disposition == GestureDisposition.accepted);
9091
this._winner = this._winner ?? this._owner.captain ?? member;
9192
this._entry.resolve(disposition);
9293
}
9394
}
9495
}
9596

9697
public class GestureArenaTeam {
97-
public GestureArenaTeam(GestureArenaManager gestureArena) {
98-
this._gestureArena = gestureArena;
99-
}
100-
101-
internal readonly GestureArenaManager _gestureArena;
102-
10398
internal readonly Dictionary<int, _CombiningGestureArenaMember> _combiners =
10499
new Dictionary<int, _CombiningGestureArenaMember>();
105100

0 commit comments

Comments
 (0)