FairyGUI.EventContext.StopPropagation C# (CSharp) Method

StopPropagation() public method

public StopPropagation ( ) : void
return void
        public void StopPropagation()
        {
            _stopsPropagation = true;
        }

Usage Example

示例#1
0
        void __touchBegin(EventContext context)
        {
            context.StopPropagation();

            InputEvent evt = context.inputEvent;
            Vector2    pt  = _grip.GlobalToLocal(new Vector2(evt.x, evt.y));

            if (_vertical)
            {
                if (pt.y < 0)
                {
                    _target.ScrollUp(4, false);
                }
                else
                {
                    _target.ScrollDown(4, false);
                }
            }
            else
            {
                if (pt.x < 0)
                {
                    _target.ScrollLeft(4, false);
                }
                else
                {
                    _target.ScrollRight(4, false);
                }
            }
        }
All Usage Examples Of FairyGUI.EventContext::StopPropagation