Made it possible to detect if a double click should be processed.

This commit is contained in:
Lars Brubaker 2015-10-22 17:09:16 -07:00
parent 991394bd62
commit b2641f285c
6 changed files with 7 additions and 6 deletions

View file

@ -104,7 +104,7 @@ namespace MatterHackers.MatterControl.CustomWidgets.LibrarySelector
public override void OnMouseDown(MouseEventArgs mouseEvent)
{
if (mouseEvent.Clicks == 2)
if (IsDoubleClick(mouseEvent))
{
UiThread.RunOnIdle(ChangeCollection);
}

View file

@ -349,7 +349,7 @@ namespace MatterHackers.MatterControl.CustomWidgets.LibrarySelector
MouseEventArgs mouseEvent = e as MouseEventArgs;
if (mouseEvent != null
&& mouseEvent.Clicks == 2)
&& IsDoubleClick(mouseEvent))
{
if (parentProvider == null)
{