Unhide the pointer on scroll events (#797)
Browse files at this commit1 changed file +6 -0
- src/input/mod.rs +6 -0
src/input/mod.rsmodified+6 -0
| @@ -1744,6 +1744,12 @@ impl State { | ||
| 1744 | 1744 | fn on_pointer_axis<I: InputBackend>(&mut self, event: I::PointerAxisEvent) { |
| 1745 | 1745 | let source = event.source(); |
| 1746 | 1746 | |
| 1747 | + // We received an event for the regular pointer, so show it now. This is also needed for | |
| 1748 | + // update_pointer_contents() below to return the real contents, necessary for the pointer | |
| 1749 | + // axis event to reach the window. | |
| 1750 | + self.niri.pointer_hidden = false; | |
| 1751 | + self.niri.tablet_cursor_location = None; | |
| 1752 | + | |
| 1747 | 1753 | let horizontal_amount_v120 = event.amount_v120(Axis::Horizontal); |
| 1748 | 1754 | let vertical_amount_v120 = event.amount_v120(Axis::Vertical); |
| 1749 | 1755 |