Check for corner change on mouse move (rare case)

master
Duane Johnson 2011-11-11 11:11:54 -06:00
parent 08d4abbe91
commit 6e658cd164
1 changed files with 2 additions and 1 deletions

View File

@ -252,6 +252,7 @@ class XYButtons(BufferedCanvas):
if not self.enabled:
return
oldcorner = self.corner
oldq, oldc = self.quadrant, self.concentric
mpos = event.GetPosition()
@ -278,7 +279,7 @@ class XYButtons(BufferedCanvas):
if mpos.x < cx and mpos.y >= cy:
self.corner = 3
if oldq != self.quadrant or oldc != self.concentric:
if oldq != self.quadrant or oldc != self.concentric or oldcorner != self.corner:
self.update()
def OnLeftDown(self, event):