|
From: <jam...@us...> - 2007-01-25 16:42:56
|
Revision: 26
http://svn.sourceforge.net/nplot/?rev=26&view=rev
Author: jamcquay
Date: 2007-01-25 08:42:53 -0800 (Thu, 25 Jan 2007)
Log Message:
-----------
Fixed [SF bug 1644591]
Dirty flag optimizzation. Call was being processed twice in several mouse related actions.
Full patch submitted via email by Pawel Konieczny
Signed off by: jamcquay
Modified Paths:
--------------
trunk/src/Windows.PlotSurface2D.cs
Modified: trunk/src/Windows.PlotSurface2D.cs
===================================================================
--- trunk/src/Windows.PlotSurface2D.cs 2007-01-24 23:14:35 UTC (rev 25)
+++ trunk/src/Windows.PlotSurface2D.cs 2007-01-25 16:42:53 UTC (rev 26)
@@ -750,7 +750,6 @@
bool dirty = false;
foreach (Interactions.Interaction i in interactions_)
{
- i.DoMouseDown(e,this);
dirty |= i.DoMouseDown(e,this);
}
if (dirty)
@@ -782,7 +781,6 @@
bool dirty = false;
foreach (Interactions.Interaction i in interactions_)
{
- i.DoMouseWheel(e, this);
dirty |= i.DoMouseWheel(e, this);
}
if (dirty)
@@ -803,7 +801,6 @@
bool dirty = false;
foreach (Interactions.Interaction i in interactions_)
{
- i.DoMouseMove(e, ctr, lastKeyEventArgs_);
dirty |= i.DoMouseMove(e, ctr, lastKeyEventArgs_);
}
if (dirty)
@@ -2444,7 +2441,7 @@
((Windows.PlotSurface2D)ctr).CacheAxes();
- float delta = (float)e.Delta / (float)e.Delta;
+ float delta = (float)e.Delta / (float)SystemInformation.MouseWheelScrollDelta;
delta *= sensitivity_;
Axis axis = null;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|