Skip to content

Commit c10b2ba

Browse files
committed
Slider reposition on window resize
1 parent 159509f commit c10b2ba

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

gravity/js/canvas.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@ function draw() {
6262

6363
function windowResized(){
6464
resizeCanvas(windowWidth, windowHeight);
65+
showNames.position(45, height - 150);
66+
length.position(50, height - 50);
67+
gravity.position(50, height - 100);
6568
}
6669

6770
function showDate(){

0 commit comments

Comments
 (0)