Skip to content
Browse files

implemented Daniel's suggestion #1: http://community.sharpdevelop.net…

  • Loading branch information...
1 parent cc7fb01 commit 72ae83ed8e0f8ea3a1d1ba81632866b0eab5b621 @siegfriedpammer siegfriedpammer committed Feb 3, 2011
Showing with 1 addition and 7 deletions.
  1. +1 −7 src/AddIns/DisplayBindings/AvalonEdit.AddIn/Src/ChangeMarkerMargin.cs
View
8 src/AddIns/DisplayBindings/AvalonEdit.AddIn/Src/ChangeMarkerMargin.cs
@@ -34,7 +34,7 @@ public ChangeMarkerMargin(IChangeWatcher changeWatcher)
{
this.changeWatcher = changeWatcher;
this.delayTimer = new DispatcherTimer() {
- Interval = TimeSpan.FromMilliseconds(displayDelayMs)
+ Interval = SystemParameters.MouseHoverTime
};
delayTimer.Tick += delegate { DisplayTooltip(); };
changeWatcher.ChangeOccurred += ChangeOccurred;
@@ -130,12 +130,6 @@ protected override Size MeasureOverride(Size availableSize)
ITextMarkerService markerService;
DispatcherTimer delayTimer;
-
- /// <summary>
- /// Time the mouse has to hover over the change margin before it displays the diff tooltip.
- /// </summary>
- const int displayDelayMs = 1000;
-
protected override void OnMouseEnter(MouseEventArgs e)
{
delayTimer.Start();

0 comments on commit 72ae83e

Please sign in to comment.
Something went wrong with that request. Please try again.