Skip to content

Commit

Permalink
Need to read the trajectory slider at initialization time.
Browse files Browse the repository at this point in the history
  • Loading branch information
timhutton committed Dec 27, 2020
1 parent 221d836 commit e8ddd9c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions code/variable_gravity.js
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,7 @@ function init() {

const moveAlongTrajectoryCheckbox = document.getElementById('moveAlongTrajectoryCheckbox');
const trajectorySlider = document.getElementById('trajectorySlider');
trajectory_position = trajectorySlider.value / 100;
moveAlongTrajectoryCheckbox.onclick = function() {
verticalViewAngleSlider.disabled = moveAlongTrajectoryCheckbox.checked;
horizontalViewAngleSlider.disabled = moveAlongTrajectoryCheckbox.checked;
Expand Down

0 comments on commit e8ddd9c

Please sign in to comment.