Skip to content

Commit 6f84038

Browse files
fix: allow 0.1 interval steps for spaceTimeout
If the step is not specified, the default validation requires that the values are integers. Since the default value is 0.5, this prevented the settings from being changed. Now the step is 0.1 which should give enough control without clashing with the default
1 parent dd98590 commit 6f84038

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

assets/javascripts/templates/pages/settings_tmpl.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ app.templates.settingsPage = (settings) -> """
6060
<input type="checkbox" form="settings" name="spaceScroll" value="1"#{if settings.spaceScroll then ' checked' else ''}>Use spacebar to scroll during search
6161
</label>
6262
<label class="_settings-label">
63-
<input type="number" form="settings" name="spaceTimeout" min="0" max="5" value="#{settings.spaceTimeout}"> Delay until you can scroll by pressing space
63+
<input type="number" step="0.1" form="settings" name="spaceTimeout" min="0" max="5" value="#{settings.spaceTimeout}"> Delay until you can scroll by pressing space
6464
<small>Time in seconds</small>
6565
</label>
6666
</div>

0 commit comments

Comments
 (0)