/// <summary> /// Handle mouse down to handle selection. /// </summary> /// <param name="parent">the control hosting the html to invalidate</param> /// <param name="e">the mouse event args</param> public void HandleMouseDown(Control parent, MouseEventArgs e) { ArgChecker.AssertArgNotNull(parent, "parent"); ArgChecker.AssertArgNotNull(e, "e"); if (_selectionHandler != null) { _selectionHandler.HandleMouseDown(parent, OffsetByScroll(e.Location)); } }
/// <summary> /// Handle mouse down to handle selection. /// </summary> /// <param name="parent">the control hosting the html to invalidate</param> /// <param name="location">the location of the mouse</param> public void HandleMouseDown(RControl parent, RPoint location) { ArgChecker.AssertArgNotNull(parent, "parent"); try { if (_selectionHandler != null) { _selectionHandler.HandleMouseDown(parent, OffsetByScroll(location), IsMouseInContainer(location)); } } catch (Exception ex) { ReportError(HtmlRenderErrorType.KeyboardMouse, "Failed mouse down handle", ex); } }