Skip to content

Commit

Permalink
don't change propagation yet
Browse files Browse the repository at this point in the history
  • Loading branch information
jrmoulton committed Nov 13, 2023
1 parent 3ceb25d commit 79cff60
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/widgets/slider.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,15 @@ use peniko::Color;
use winit::keyboard::{Key, NamedKey};

use crate::{
id, prop, prop_extracter,
id,
prop,
prop_extracter,
style::{Background, BorderRadius, Foreground},
style_class,
unit::PxPct,
view::View,
views::Decorators,
EventPropagation,
// EventPropagation,
};

prop!(pub CircleRad: PxPct {} = PxPct::Pct(98.));
Expand Down Expand Up @@ -118,7 +120,7 @@ impl View for Slider {
cx: &mut crate::context::EventCx,
_id_path: Option<&[crate::id::Id]>,
event: crate::event::Event,
) -> EventPropagation {
) -> bool {
match event {
crate::event::Event::PointerDown(event) => {
cx.update_active(self.id);
Expand Down Expand Up @@ -159,7 +161,7 @@ impl View for Slider {
}
_ => {}
};
EventPropagation::Continue
false
}

fn style(&mut self, cx: &mut crate::context::StyleCx<'_>) {
Expand Down

0 comments on commit 79cff60

Please sign in to comment.