iced-rs / iced_aw

Additional widgets for the Iced GUI library
MIT License
467 stars 110 forks source link

Allow disabling scroll events for NumberInput. #239

Closed airblast-dev closed 6 months ago

airblast-dev commented 6 months ago

https://github.com/iced-rs/iced_aw/issues/223

Simply allows disabling mouse scroll events for the NumberInput. Not sure how needed this is, but I can see it being annoying where the outer scrollable is small, as the user could accidentally modify the value.

The issue also mentions the idea of the event being opt-in, instead of opt-out which can be changed in NumberInput::new if preferred. Though personally I don't think its worth changing default behavior.