From: <jd...@us...> - 2009-06-14 17:38:15
|
Revision: 7221 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=7221&view=rev Author: jdh2358 Date: 2009-06-14 17:38:12 +0000 (Sun, 14 Jun 2009) Log Message: ----------- fixed a press/release pan bug when mouse button=2 as described in sf bug 2805312 Modified Paths: -------------- trunk/matplotlib/lib/matplotlib/backend_bases.py Modified: trunk/matplotlib/lib/matplotlib/backend_bases.py =================================================================== --- trunk/matplotlib/lib/matplotlib/backend_bases.py 2009-06-14 17:34:40 UTC (rev 7220) +++ trunk/matplotlib/lib/matplotlib/backend_bases.py 2009-06-14 17:38:12 UTC (rev 7221) @@ -2007,6 +2007,9 @@ def release_pan(self, event): 'the release mouse button callback in pan/zoom mode' + + if self._button_pressed is None: + return self.canvas.mpl_disconnect(self._idDrag) self._idDrag=self.canvas.mpl_connect('motion_notify_event', self.mouse_move) for a, ind in self._xypress: This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |