check state for 0 during button motion
authorca
Wed, 20 Aug 1997 18:06:57 +0200
changeset 289 7bbe22b39d9b
parent 288 675327dd4d7d
child 290 1428bab2aa68
check state for 0 during button motion
UIGalleryView.st
--- a/UIGalleryView.st	Wed Aug 20 18:06:03 1997 +0200
+++ b/UIGalleryView.st	Wed Aug 20 18:06:57 1997 +0200
@@ -459,7 +459,7 @@
     "
     |sensor|
 
-    (lastClickPoint notNil and:[selection notNil]) ifTrue:[
+    (state ~~ 0 and:[lastClickPoint notNil and:[selection notNil]]) ifTrue:[
         sensor := self sensor.
         sensor anyButtonPressed ifTrue:[
             (lastClickPoint dist:(x@y)) > 10.0 ifTrue:[
@@ -467,8 +467,6 @@
             ]
         ]
     ]
-
-    "Modified: 11.8.1997 / 00:44:49 / cg"
 !
 
 buttonPress:button x:x y:y