zoom has steps and allows < 1

This commit is contained in:
Tomáš Mládek 2019-11-01 12:36:16 +01:00
parent 907f323583
commit 4a208f6078

View file

@ -2,7 +2,7 @@
<div id="player"> <div id="player">
<div> <div>
<label for="zoom">Zoom:</label> <label for="zoom">Zoom:</label>
<input type="number" min="1" :max="50" value="1" class="slider" v-model.number="zoom" id="zoom"> <input type="number" min="0.01" value="1" step="0.1" class="slider" v-model.number="zoom" id="zoom">
</div> </div>
<div id="player-canvas-container"> <div id="player-canvas-container">
<canvas ref="canvas" id="player-canvas" <canvas ref="canvas" id="player-canvas"