Skip to content

Commit

Permalink
fix: scroll problem
Browse files Browse the repository at this point in the history
  • Loading branch information
Decodetalkers committed Oct 22, 2024
1 parent f53925e commit cb77249
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion iced_layershell/src/event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ impl<Message: 'static, INFO: Clone> From<&DispatchMessage> for IcedLayerEvent<Me
y: -vertical.discrete as f32,
});
}
IcedLayerEvent::Window(WindowEvent::Axis {
IcedLayerEvent::Window(WindowEvent::PixelDelta {
x: -horizontal.absolute as f32,
y: -vertical.absolute as f32,
})
Expand Down
2 changes: 1 addition & 1 deletion iced_sessionlock/src/event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ impl<Message: 'static> From<&DispatchMessage> for IcedSessionLockEvent<Message>
y: -vertical.discrete as f32,
});
}
IcedSessionLockEvent::Window(WindowEvent::Axis {
IcedSessionLockEvent::Window(WindowEvent::PixelDelta {
x: -horizontal.absolute as f32,
y: -vertical.absolute as f32,
})
Expand Down

0 comments on commit cb77249

Please sign in to comment.