From 8e215d8edf583179340f044f5624a887fa64297c Mon Sep 17 00:00:00 2001 From: Nat Date: Mon, 30 Jul 2007 06:07:07 +0000 Subject: Small fix --- (limited to 'SynthLab') diff --git a/SynthLab/SynthLabWindow.py b/SynthLab/SynthLabWindow.py index d9c7377..78c8240 100644 --- a/SynthLab/SynthLabWindow.py +++ b/SynthLab/SynthLabWindow.py @@ -522,6 +522,11 @@ class SynthLabWindow(SubActivity): self.highlightWire( None ) self.highlightGate( None ) + + if event.button == 1 or event.button == 3: + for i in range(self.objectCount): + if self.bounds[i][0] < event.x < self.bounds[i][2] and self.bounds[i][1] < event.y < self.bounds[i][3]: + self.select( i ) if self.action == "drag-object": self.doneAction() @@ -541,11 +546,6 @@ class SynthLabWindow(SubActivity): self.highlightWire( None ) self.highlightGate( None ) - - if event.button == 1: - for i in range(self.objectCount): - if self.bounds[i][0] < event.x < self.bounds[i][2] and self.bounds[i][1] < event.y < self.bounds[i][3]: - self.select( i ) if event.button == 1: for i in range(self.objectCount): -- cgit v0.9.1