Add comment about crash

This commit is contained in:
Ivan Molodetskikh
2023-08-09 14:19:22 +04:00
parent 396ab93585
commit c50e22d415
2 changed files with 12 additions and 4 deletions
+1
View File
@@ -120,6 +120,7 @@ impl Niri {
InputEvent::PointerAxis { event, .. } => {
let source = event.source();
// FIXME: this crashes on keyboard scroll.
let horizontal_amount = event
.amount(Axis::Horizontal)
.unwrap_or_else(|| event.amount_discrete(Axis::Horizontal).unwrap() * 3.0);