Up and down

This commit is contained in:
SillyLossy
2023-03-28 16:06:31 +03:00
parent 2836b93463
commit 322f02dec3
3 changed files with 118 additions and 43 deletions

View File

@ -19,7 +19,14 @@ function onExtensionFloatingIntervalInput() {
}
function onExtensionFloatingDepthInput() {
promptInsertionDepth = Number($(this).val());
let value = Number($(this).val());
if (promptInsertionDepth < 0) {
value = Math.abs(value);
$(this).val(value);
}
promptInsertionDepth = value;
saveSettings();
}