Skip to content

Commit

Permalink
Slider reposition on window resize
Browse files Browse the repository at this point in the history
  • Loading branch information
gbertherat committed Dec 10, 2020
1 parent 159509f commit c10b2ba
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gravity/js/canvas.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ function draw() {

function windowResized(){
resizeCanvas(windowWidth, windowHeight);
showNames.position(45, height - 150);
length.position(50, height - 50);
gravity.position(50, height - 100);
}

function showDate(){
Expand Down

0 comments on commit c10b2ba

Please sign in to comment.