Skip to content

Commit

Permalink
Fixed simulated clicks on BilgeButtons.
Browse files Browse the repository at this point in the history
  • Loading branch information
Bilge committed Jul 31, 2017
1 parent d34b87a commit d86ab0d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Source/Controls/BilgeButton.cs
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@ private bool IsMouseOver
}

protected override void OnClick(EventArgs e) {
// Only allow left click to raise click event.
if ((e as MouseEventArgs)?.Button.HasFlag(MouseButtons.Left) ?? false) {
// Only allow left clicks and simulated clicks to raise click event.
if ((e as MouseEventArgs)?.Button.HasFlag(MouseButtons.Left) ?? true) {
base.OnClick(e);
}
}
Expand Down
4 changes: 2 additions & 2 deletions Source/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.2.2.0")]
[assembly: AssemblyFileVersion("1.2.2.0")]
[assembly: AssemblyVersion("1.2.3.0")]
[assembly: AssemblyFileVersion("1.2.3.0")]

0 comments on commit d86ab0d

Please sign in to comment.