chore: cleanup platform specific code
This commit is contained in:
parent
a11b828280
commit
3b7f0bec0e
18 changed files with 109 additions and 101 deletions
|
|
@ -164,10 +164,6 @@ impl WaylandSpecific {
|
|||
>,
|
||||
user_interfaces: &mut UserInterfaces<'a, P>,
|
||||
clipboard: &mut crate::Clipboard,
|
||||
#[cfg(feature = "a11y")] adapters: &mut HashMap<
|
||||
window::Id,
|
||||
(u64, iced_accessibility::accesskit_winit::Adapter),
|
||||
>,
|
||||
create_compositor: CreateCompositor<'b, P>,
|
||||
) where
|
||||
P: Program,
|
||||
|
|
@ -213,8 +209,6 @@ impl WaylandSpecific {
|
|||
events,
|
||||
clipboard,
|
||||
subsurface_state,
|
||||
#[cfg(feature = "a11y")]
|
||||
adapters,
|
||||
create_compositor,
|
||||
)
|
||||
.await;
|
||||
|
|
|
|||
|
|
@ -361,10 +361,6 @@ impl SctkEvent {
|
|||
events: &mut Vec<(Option<window::Id>, iced_runtime::core::Event)>,
|
||||
clipboard: &mut Clipboard,
|
||||
subsurface_state: &mut Option<SubsurfaceState>,
|
||||
#[cfg(feature = "a11y")] adapters: &mut HashMap<
|
||||
window::Id,
|
||||
(u64, iced_accessibility::accesskit_winit::Adapter),
|
||||
>,
|
||||
create_compositor_data: CreateCompositor<'b, P>,
|
||||
) where
|
||||
P: Program,
|
||||
|
|
@ -472,8 +468,7 @@ impl SctkEvent {
|
|||
x: -horizontal.value120 as f32 / 120.,
|
||||
y: -vertical.value120 as f32 / 120.,
|
||||
}
|
||||
} else if horizontal.discrete != 0
|
||||
|| vertical.discrete != 0
|
||||
} else if horizontal.discrete != 0 || vertical.discrete != 0
|
||||
{
|
||||
mouse::ScrollDelta::Lines {
|
||||
x: -horizontal.discrete as f32,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue