1
0
Fork 0
forked from wry/wry

seat: uniformly convert scroll steps to scroll px

This commit is contained in:
Julian Orth 2022-06-05 14:14:53 +02:00
parent 2a9c746781
commit b89d72fcd9
7 changed files with 23 additions and 58 deletions

View file

@ -32,7 +32,6 @@ use {
object::Object,
rect::{Rect, Region},
render::Renderer,
state::DeviceHandlerData,
tree::{
FindTreeResult, FoundNode, Node, NodeId, NodeVisitor, NodeVisitorBase, OutputNode,
ToplevelNode,
@ -1094,13 +1093,8 @@ impl Node for WlSurface {
seat.button_surface(&self, time_usec, button, state, serial);
}
fn node_on_axis_event(
self: Rc<Self>,
dev: &DeviceHandlerData,
seat: &Rc<WlSeatGlobal>,
event: &PendingScroll,
) {
seat.scroll_surface(dev, &*self, event);
fn node_on_axis_event(self: Rc<Self>, seat: &Rc<WlSeatGlobal>, event: &PendingScroll) {
seat.scroll_surface(&*self, event);
}
fn node_on_focus(self: Rc<Self>, seat: &Rc<WlSeatGlobal>) {