예제 #1
0
        /// <summary>
        /// 控件触摸按下方法
        /// </summary>
        /// <param name="touchInfo">触摸信息</param>
        public virtual void onControlTouchDown(FCTouchInfo touchInfo)
        {
            FCGrid grid = Grid;

            if (m_control != null && grid != null)
            {
                FCTouchInfo newTouchInfo = touchInfo.clone();
                newTouchInfo.m_firstPoint  = grid.pointToControl(m_control.pointToNative(touchInfo.m_firstPoint));
                newTouchInfo.m_secondPoint = grid.pointToControl(m_control.pointToNative(touchInfo.m_secondPoint));
                grid.onTouchDown(newTouchInfo);
            }
        }