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)); }