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

            if (entry != null)
            {
                entry.resolve(disposition);
                _entries.Remove(pointer);
            }
        }
Пример #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);
            }
        }
Пример #4
0
 protected void resolve(GestureDisposition disposition)
 {
     _arenaEntry.resolve(disposition);
 }