From 98f39538513ea4e778d8a7fe63f808d2fb09ddc4 Mon Sep 17 00:00:00 2001 From: YoungHa Kim Date: Sun, 22 Oct 2023 11:28:59 +0900 Subject: [PATCH] example__ visible_bounds_fix --- examples/visible_bounds/src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/visible_bounds/src/main.rs b/examples/visible_bounds/src/main.rs index 697badb4ff..aa8d760b85 100644 --- a/examples/visible_bounds/src/main.rs +++ b/examples/visible_bounds/src/main.rs @@ -1,6 +1,7 @@ use iced::event::{self, Event}; use iced::executor; use iced::mouse; +use iced::subscription::events_with; use iced::theme::{self, Theme}; use iced::widget::{ column, container, horizontal_space, row, scrollable, text, vertical_space, @@ -163,7 +164,7 @@ impl Application for Example { } fn subscription(&self) -> Subscription { - event::listen_with(|event, _| match event { + events_with(|event, _| match event { Event::Mouse(mouse::Event::CursorMoved { position }) => { Some(Message::MouseMoved(position)) }