Beispiel #1
0
        /// <summary>
        /// Performs a slide on the handler for this object
        /// </summary>
        public void DoSlide()
        {
            if (!Supports(TouchAction.Slide))
            {
                return;
            }
            if (handler == null)
            {
                return;
            }

            float slideX, slideY;

            slideX = (relativePos.X - oldRelativePos.X);
            slideY = (relativePos.Y - oldRelativePos.Y);

            handler.Slide(slideX, slideY);
        }