Exemple #1
0
 public override void addScrollPointer(PointerScrollEvent evt)
 {
     this.startTrackingScrollerPointer(evt.pointer);
     if (this._state == _DragState.ready)
     {
         this._state           = _DragState.possible;
         this._initialPosition = evt.position;
         if (this.onStart != null)
         {
             this.invokeCallback <object>("onStart", () => {
                 this.onStart(new DragStartDetails(
                                  sourceTimeStamp: evt.timeStamp,
                                  globalPosition: this._initialPosition
                                  ));
                 return(null);
             });
         }
     }
 }
Exemple #2
0
 public override void addScrollPointer(PointerScrollEvent evt)
 {
     startTrackingScrollerPointer(evt.pointer);
     if (_state == _DragState.ready)
     {
         _state           = _DragState.possible;
         _initialPosition = new OffsetPair(global: evt.position, local: evt.localPosition);
         if (onStart != null)
         {
             invokeCallback <object>("onStart", () => {
                 onStart(new DragStartDetails(
                             sourceTimeStamp: evt.timeStamp,
                             globalPosition: _initialPosition.global,
                             localPosition: _initialPosition.local
                             ));
                 return(null);
             });
         }
     }
 }
Exemple #3
0
 public virtual void addScrollPointer(PointerScrollEvent evt)
 {
 }