示例#1
0
        public static Slide?SlideFromMouseMovement(POINT start, POINT end)
        {
            var screen = Screen.FromPoint(end.ToDrawingPoint());

            if (screen is null)
            {
                return(null);
            }

            var diff = end - start;

            if (diff.LengthAsVector() < Config.GetInstance.MouseDragDeadzone)
            {
                return(new CenterSlide(screen));
            }