1
0
Fork 0

Don't check bounds for parameter dragging

You should be able to keep dragging after leaving the widget area.
This commit is contained in:
Robbert van der Helm 2022-03-14 16:34:44 +01:00
parent 705433069a
commit 4714b025a5

View file

@ -190,7 +190,7 @@ impl<'a, P: Param> Widget<ParamMessage, Renderer> for ParamSlider<'a, P> {
+ (cursor_position.x - drag_start_x) * GRANULAR_DRAG_MULTIPLIER,
),
);
} else if bounds.contains(cursor_position) {
} else {
self.state.granular_drag_start_x = None;
self.set_normalized_value(