(focused = true)} on:focusout={() => (focused = false)} /> {#if isDesktop()}
{ 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}