简体   繁体   中英

Flutter Desktop scrolling with mouse wheel: step size

How do i change how much a single mouse scroll wheel step scrolls in a Flutter Desktop App (Windows, macOS, Linux), without affecting touchpad scrolling speed?

The default scroll wheel step size is too small, especially on 4K monitors.

If i multiply the step size through scroll listener, it breaks touchpad scrolling, makes it too fast.

I maybe need to somehow distinguish between touchpad scroll and mousewheel scroll?

Currently there is no reliable way to distinguish between scroll wheel scroll and trackpad scroll because they are the same event at the engine level. Because trackpad gestures aren't directly supported yet trackpad scroll is currently implemented as a series of discrete incremental scroll events rather than a gesture.

Once that issue is addressed, they will be different types of scrolling that can be disgusted from each other.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM