Nat
TTCTheo's Typesafe Cult
•Created by Nat on 1/1/2025 in #questions
Enable mouse scroll or mouse drag in number input?
for my purposes (just moving an image) sliders worked better with that 1000px range, but thanks you two!
11 replies
TTCTheo's Typesafe Cult
•Created by Nat on 1/1/2025 in #questions
Enable mouse scroll or mouse drag in number input?
assuming the tallest image would be a phone portrait at 9:16 (i know there are taller phones) and the default height is 200 for a 4:3 box, the slider would be around [-500, +500] on y axis (the image would be 1000 pixels tall hidden by the 200px tall box.
it's not very clean but i'll try this.
11 replies
TTCTheo's Typesafe Cult
•Created by Nat on 1/1/2025 in #questions
Enable mouse scroll or mouse drag in number input?
for accidental triggering, i'd assume the scroll would require focus on that element first.
a slider sounds better than what i have but, what would i set as the slider's range?
11 replies