From cfdfec97707c492568096684309f79dc20c94262 Mon Sep 17 00:00:00 2001 From: Ryan Scheidter Date: Sun, 13 Nov 2022 15:41:47 -0600 Subject: Partially Fixed Mapped Operations --- native/src/widget/action.rs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'native') diff --git a/native/src/widget/action.rs b/native/src/widget/action.rs index 593d6f63..c78c5776 100644 --- a/native/src/widget/action.rs +++ b/native/src/widget/action.rs @@ -1,4 +1,4 @@ -use crate::widget::operation::{self, Operation}; +use crate::widget::operation::{self, Focusable, Operation, Scrollable}; use crate::widget::Id; use iced_futures::MaybeSend; @@ -67,6 +67,14 @@ where operate_on_children(&mut MapRef { operation, f }); }); } + + fn scrollable(&mut self, state: &mut dyn Scrollable, id: Option<&Id>) { + self.operation.scrollable(state, id); + } + + fn focusable(&mut self, state: &mut dyn Focusable, id: Option<&Id>) { + self.operation.focusable(state, id); + } } let Self { operation, f } = self; -- cgit