mirror of https://github.com/kivy/kivy.git
Merge branch 'master' of ssh://github.com/kivy/kivy
This commit is contained in:
commit
f2e3f259d9
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue