]> git.mxchange.org Git - simgear.git/commitdiff
Make "repeat" start slower on pick-animation mouse events;
authorJohn Denker <jsd@av8n.com>
Wed, 7 Jan 2009 11:22:13 +0000 (04:22 -0700)
committerTim Moore <timoore@redhat.com>
Wed, 9 Sep 2009 20:54:13 +0000 (22:54 +0200)
otherwise it is unusable.

simgear/scene/model/animation.cxx

index a52174d387d84d897252d0ed9ae9df5070e96cef..22ba28258a4bdd64209ea18de9af4963cd1be766 100644 (file)
@@ -2013,7 +2013,7 @@ public:
     SGBindingList::const_iterator i;
     for (i = _bindingsDown.begin(); i != _bindingsDown.end(); ++i)
       (*i)->fire();
-    _repeatTime = 0;
+    _repeatTime = -_repeatInterval;    // anti-bobble: delay start of repeat
     return true;
   }
   virtual void buttonReleased(void)