Skip to content

Commit

Permalink
Merge pull request #1 from amolpathak224/amolpathak224-patch-1
Browse files Browse the repository at this point in the history
Update MouseSimulatorExt.cs
  • Loading branch information
amolpathak224 committed Jan 21, 2016
2 parents 80d530a + cf222a2 commit 438a8ee
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/Winium.Cruciatus/Core/MouseSimulatorExt.cs
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,23 @@ public void VerticalScroll(int amountOfClicks)
this.mouseSimulator.VerticalScroll(amountOfClicks);
Thread.Sleep(250);
}
/// <summary>
/// Implementing mouseDown event at current mouse location for drag and drop
/// </summary>
public void MouseDown()
{
this.mouseSimulator.LeftButtonDown();
Thread.Sleep(250);
}

/// <summary>
/// Implementing mouseUp event at current mouse location for drag and drop
/// </summary>
public void MouseUp()
{
this.mouseSimulator.LeftButtonUp();
Thread.Sleep(250);
}
#endregion
}
}

0 comments on commit 438a8ee

Please sign in to comment.