Beispiel #1
0
 void _handlePointerDown(PointerDownEvent evt)
 {
     if (widget.enabledCallback())
     {
         _recognizer.addPointer(evt);
     }
 }
Beispiel #2
0
 public override void handleEvent(PointerEvent e, HitTestEntry entry)
 {
     D.assert(debugHandleEvent(e, entry));
     if (e is PointerDownEvent pointerDownEvent && isInteractive)
     {
         _drag.addPointer(pointerDownEvent);
     }
 }
Beispiel #3
0
 public override void handleEvent(PointerEvent evt, HitTestEntry entry)
 {
     D.assert(debugHandleEvent(evt, entry));
     if (evt is PointerDownEvent && isInteractive)
     {
         _drag.addPointer((PointerDownEvent)evt);
         _tap.addPointer((PointerDownEvent)evt);
     }
 }
Beispiel #4
0
        public override void handleEvent(PointerEvent evt, HitTestEntry entry)
        {
            D.assert(debugHandleEvent(evt, entry));
            if (evt is PointerDownEvent && onChanged != null)
            {
                _drag.addPointer((PointerDownEvent)evt);
            }

            base.handleEvent(evt, entry);
        }