(focused = true)}
on:focusout={() => (focused = false)}
/>
{#if isDesktop()}
min}
tabindex="-1"
title={tr.actionsDecrementValue()}
role="button"
on:click={() => {
input.focus();
if (value > min) {
change(-step);
}
}}
on:mousedown={() =>
longPress(() => {
if (value > min) {
change(-step);
}
})}
on:mouseup={() => {
clearTimeout(pressTimer);
pressed = false;
}}
>
{@html chevronDown}
{
input.focus();
if (value < max) {
change(step);
}
}}
on:mousedown={() =>
longPress(() => {
if (value < max) {
change(step);
}
})}
on:mouseup={() => {
clearTimeout(pressTimer);
pressed = false;
}}
>
{@html chevronUp}
{/if}