Merge branch 'master' of ssh://github.com/kivy/kivy

This commit is contained in:
Mathieu Virbel 2013-03-31 05:22:05 +02:00
commit f2e3f259d9
1 changed files with 3 additions and 2 deletions

View File

@ -255,8 +255,9 @@ class ClockEvent(object):
self.callback = None self.callback = None
def tick(self, curtime): def tick(self, curtime):
# timeout happen ? # timeout happened ? (check also if we would miss from 5ms)
if curtime - self._last_dt < self.timeout: # this 5ms increase the accuracy if the timing of animation for example.
if curtime - self._last_dt < self.timeout - 0.005:
return True return True
# calculate current timediff for this event # calculate current timediff for this event