Permalink
Browse files

Have a max display time for the timeline

  • Loading branch information...
1 parent 1d25602 commit 5096e0690ca7f5289c965298bc9cc15709bba96a @okayzed okayzed committed Aug 7, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 packet_flight/js/packet-flight.js
@@ -224,7 +224,8 @@ function show_flight(PAPER, max_x, max_y) {
text.remove();
}
- text = PAPER.text(max_x+100, max_y+50, "" + parseInt(frame * 100) / 100);
+ text = PAPER.text(max_x+100, max_y+50,
+ "" + Math.min(parseInt(frame * 100) / 100, timeline.end));
if (!packet) { setTimeout(replay, 200); return }
var replay_time = (packet.delay - frame) * 100;

0 comments on commit 5096e06

Please sign in to comment.