Beispiel #1
0
        private void HandleTap(UITapGestureRecognizer recognizer)
        {
            var location = recognizer.LocationInView(this);

            if (SelectionEnable && recognizer.State == UIGestureRecognizerState.Ended)
            {
                Trace($"Tap gesture location: {location.X}/{location.Y}");

                if (ViewPort.ViewPortRect.Contains(location))
                {
                    HandleContentTap(ViewPort.ContentPosition(location));
                }
            }

            StopDeceleration();
        }