Skip to content

Commit

Permalink
DXCanvas: suppress all OnVerticalBlankTickerWaitError if not debug mode
Browse files Browse the repository at this point in the history
  • Loading branch information
d2phap committed Dec 29, 2023
1 parent 7ec1803 commit d439deb
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Source/Components/ImageGlass.Views/DXCanvas.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1123,6 +1123,17 @@ protected override void Dispose(bool disposing)
DisposeWeb2Control();
}

protected override void OnVerticalBlankTickerWaitError(VerticalBlankTickerErrorEventArgs e)
{
base.OnVerticalBlankTickerWaitError(e);

if (!EnableDebug)
{
Thread.Sleep(1000);
e.Handled = true;
}
}

protected override void OnMouseClick(MouseEventArgs e)
{
// disable the default OnMouseClick
Expand Down

0 comments on commit d439deb

Please sign in to comment.