Skip to content

Commit

Permalink
Fix rotation control: ensure rotation value is a number. (#1280)
Browse files Browse the repository at this point in the history
  • Loading branch information
demiankatz authored Jan 16, 2025
1 parent 607d662 commit b31aa64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,7 @@ <h2 class="controls-title">Duration</h2>
};

$iiif_setRotationButton.onclick = function() {
var rotation = $iiif_rotation.value;
var rotation = parseInt($iiif_rotation.value);
uv.set({
rotation: rotation,
});
Expand Down

0 comments on commit b31aa64

Please sign in to comment.