Interface Explorer: compact dialog (14 rows) with mouse-wheel scrolling and scrollbar
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
7a37039673
commit
5b32cf9808
4 files changed
+441
-2
No files matched your search
@@ -7,6 +7,8 @@
|
||||
pub(all) enum InputEvent {
|
||||
PointerMove(Double, Double)
|
||||
PointerButton(UInt, Bool)
|
||||
/// Vertical wheel scroll in wl_fixed units / 256 (positive = down).
|
||||
Scroll(Double)
|
||||
Key(UInt, Bool)
|
||||
Modifiers(UInt, UInt, UInt, UInt)
|
||||
}
|
||||
@@ -241,6 +243,14 @@ fn NestedWindow::dispatch(
|
||||
let state = r.u32()
|
||||
self.input.push(PointerButton(button, state == 1U))
|
||||
}
|
||||
4U => {
|
||||
let _time = r.u32()
|
||||
let axis = r.u32()
|
||||
let value = r.i32().to_double() / 256.0
|
||||
if axis == 0U {
|
||||
self.input.push(Scroll(value))
|
||||
}
|
||||
}
|
||||
_ => ()
|
||||
}
|
||||
} else if self.live_buffers.contains(obj) {
|
||||
|
||||
Reference in new issue
Block a user