Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×

[Help] Disable scroll wheel changing values on number input fields?

1594791337
cypher
Pro
Sheet Author
When you're clicked into an number input text field on a character sheet and you use the scroll wheel, it changes the values in the sheet.  I think this is largely undesirable, and in my experience results in players accidentally changing their stats, then being confused later on how it happened. Is it possible to disable this behavior in a sheet?  Everything I've seen by Googling around recommends JS or JQuery to suppress this behavior, but I don't think that's really an option in Roll20? Pardon my ignorance or if this has been asked before...
1594819911
Andreas J.
Forum Champion
Sheet Author
Translator
This is default behaviour for input type="number", and one way  you can avoid it by changing them to type="text", but this would also remove the up/down arrows you could use for incrementing the stat as well. Then you'll likely have to style them to look the same. text and number inputs often have different default sizes and styling, but you can change them to look same when needed.
1594830216
cypher
Pro
Sheet Author
@Andreas - Thanks, I was aware of this workaround; unfortunately the different styling thing makes that a bit of a headache, but it may be the best solution.  Still hoping for an answer that allows me to continue to use the 'number' type of input if anyone else has any suggestions?