(focused = true)} on:focusout={() => (focused = false)} style:padding-left={percentage_padding} /> {#if percentage} {#each percentage_text as str} {#if str == "%"} % {:else} {/if} {/each} {/if} {#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; }} >
{ input.focus(); if (value < max) { change(step); } }} on:mousedown={() => longPress(() => { if (value < max) { change(step); } })} on:mouseup={() => { clearTimeout(pressTimer); pressed = false; }} >
{/if}