Exemplo n.º 1
0
        public void Stop()
        {
            if (pointerId != PanelManager.NON_EXISTING_TOUCH)
            {
                if (!panel.IsDocked)
                {
                    ((UnanchoredPanelGroup)panel.Group).RestrictPanelToBounds(panel);
                }

                pointerId = PanelManager.NON_EXISTING_TOUCH;

#if ENABLE_CURSOR_MANAGEMENT
                PanelCursorHandler.OnEndResize();
#endif
            }
        }
Exemplo n.º 2
0
        public void OnEndDrag(PointerEventData eventData)
        {
            if (eventData.pointerId != pointerId)
            {
                return;
            }

            if (!panel.IsDocked)
            {
                ((UnanchoredPanelGroup)panel.Group).RestrictPanelToBounds(panel);
            }

            pointerId = PanelManager.NON_EXISTING_TOUCH;

#if ENABLE_CURSOR_MANAGEMENT
            PanelCursorHandler.OnEndResize();
#endif
        }