Skip to content

Commit ec00234

Browse files
committed
rotation via URL enabled
1 parent 7223c18 commit ec00234

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1939,7 +1939,6 @@ function loadAllUrlParameters(urlParams = new URLSearchParams(window.location.se
19391939
const rotationValue = Number.parseFloat(urlParams.get('rotation'));
19401940
if (!Number.isNaN(rotationValue)) {
19411941
committedRotationDeg = rotationValue;
1942-
commitSliderRotation();
19431942
}
19441943
}
19451944

@@ -2036,6 +2035,8 @@ window.addEventListener('load', () => {
20362035

20372036
// Render once after all URL state has been applied.
20382037
runVisualization();
2038+
// rotate if needed
2039+
commitSliderRotation();
20392040
} else {
20402041
loadExample('2mol');
20412042
}

0 commit comments

Comments
 (0)