Skip to main content

post_horizontal_scroll

Function post_horizontal_scroll 

Source
pub fn post_horizontal_scroll(delta: i32)
Expand description

Synthesise a horizontal scroll of delta wheel lines at the current focus.

Used by the gesture/thumbwheel capture watcher to re-inject the MX thumb wheel’s scrolling after the wheel has been diverted over HID++ to capture its click. delta is the device’s raw rotation; its sign follows the wheel’s rotation convention and its magnitude (one line per rotation increment) may need tuning per device, since the diverted resolution differs from native.

No-op (logs nothing) on platforms without CGEvent.