a tool for shared writing and social publishing
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

only set selection range on ios inputs if type text

+1 -1
+1 -1
src/utils/iosInputMouseDown.ts
··· 5 5 e.preventDefault(); 6 6 let target = e.currentTarget; 7 7 target.style.transform = "translateY(-2000px)"; 8 - target.setSelectionRange(0, target.value.length); 8 + if (target.type === "text") target.setSelectionRange(0, target.value.length); 9 9 target.focus(); 10 10 requestAnimationFrame(() => { 11 11 target.style.transform = "";