Skip to content
Snippets Groups Projects
Commit 73a81d7d authored by Shraddha Raghuram's avatar Shraddha Raghuram
Browse files

timeline

parent ae075264
No related branches found
No related tags found
No related merge requests found
......@@ -270,12 +270,6 @@ function draw(){
draw();
window.addEventListener('scroll', draw);
function canDraw(y1, y2) {
if (y2 < top_screen || y1 > bottom_screen) return false;
else return true;
}
function verticalLine_timeline(x, y1, y2, ctx, canvas_h) {
if (current_line >= y1 && canvas_h >= start_height) {
if (canDraw(y1, y2)) ctx.moveTo(x, y1);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment