Beispiel #1
0
 public DragScrollActivity(
     ScrollActivityDelegate del,
     ScrollDragController controller
     ) : base(del)
 {
     this._controller = controller;
 }
        public override void dispose()
        {
            if (this._currentDrag != null)
            {
                this._currentDrag.dispose();
                this._currentDrag = null;
            }

            base.dispose();
        }
Beispiel #3
0
        public override void dispose()
        {
            if (_currentDrag != null)
            {
                _currentDrag.dispose();
                _currentDrag = null;
            }

            base.dispose();
        }
        public override Drag drag(DragStartDetails details, VoidCallback dragCancelCallback)
        {
            ScrollDragController drag = new ScrollDragController(
                del: this,
                details: details,
                onDragCanceled: dragCancelCallback,
                carriedVelocity: this.physics.carriedMomentum(this._heldPreviousVelocity),
                motionStartDistanceThreshold: this.physics.dragStartDistanceMotionThreshold
                );

            this.beginActivity(new DragScrollActivity(this, drag));
            D.assert(this._currentDrag == null);
            this._currentDrag = drag;
            return(drag);
        }
Beispiel #5
0
 public override void dispose()
 {
     this._controller = null;
     base.dispose();
 }