Ejemplo n.º 1
0
 public virtual void dispose()
 {
     _arenaEntry?.resolve(GestureDisposition.rejected);
     _arenaEntry = null;
     D.assert(() => {
         _pendingDelta = null;
         return(true);
     });
 }
Ejemplo n.º 2
0
        protected virtual void resolvePointer(int pointer, GestureDisposition disposition)
        {
            GestureArenaEntry entry = _entries[pointer];

            if (entry != null)
            {
                entry.resolve(disposition);
                _entries.Remove(pointer);
            }
        }
Ejemplo n.º 3
0
        internal void _resolve(GestureArenaMember member, GestureDisposition disposition)
        {
            if (_resolved)
            {
                return;
            }

            if (disposition == GestureDisposition.rejected)
            {
                _members.Remove(member);
                member.rejectGesture(_pointer);
                if (_members.isEmpty())
                {
                    _entry.resolve(disposition);
                }
            }
            else
            {
                D.assert(disposition == GestureDisposition.accepted);
                _winner = _winner ?? _owner.captain ?? member;
                _entry.resolve(disposition);
            }
        }
Ejemplo n.º 4
0
 protected void resolve(GestureDisposition disposition)
 {
     _arenaEntry.resolve(disposition);
 }