comparison Implab.Fx/Animation.cs @ 6:dfa21d507bc5

*refactoring: Promise.Then now returns a new chained promise *fixed bug with animations when multiple events fired simultaneously
author cin
date Mon, 21 Oct 2013 02:34:31 +0400
parents 381095ad0a69
children
comparison
equal deleted inserted replaced
5:f2559580b481 6:dfa21d507bc5
49 49
50 public Promise<TArg> Play() 50 public Promise<TArg> Play()
51 { 51 {
52 var timer = new Timer(m_delay); 52 var timer = new Timer(m_delay);
53 53
54 timer.AutoReset = true; 54 timer.AutoReset = false;
55 timer.SynchronizingObject = m_syncronizationObject; 55 timer.SynchronizingObject = m_syncronizationObject;
56 timer.Elapsed += new ElapsedEventHandler(timer_Elapsed); 56 timer.Elapsed += new ElapsedEventHandler(timer_Elapsed);
57 57
58 m_prevTicks = Environment.TickCount; 58 m_prevTicks = Environment.TickCount;
59 59