Don't check bounds for parameter dragging
You should be able to keep dragging after leaving the widget area.
This commit is contained in:
parent
705433069a
commit
4714b025a5
1 changed files with 1 additions and 1 deletions
|
@ -190,7 +190,7 @@ impl<'a, P: Param> Widget<ParamMessage, Renderer> for ParamSlider<'a, P> {
|
||||||
+ (cursor_position.x - drag_start_x) * GRANULAR_DRAG_MULTIPLIER,
|
+ (cursor_position.x - drag_start_x) * GRANULAR_DRAG_MULTIPLIER,
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
} else if bounds.contains(cursor_position) {
|
} else {
|
||||||
self.state.granular_drag_start_x = None;
|
self.state.granular_drag_start_x = None;
|
||||||
|
|
||||||
self.set_normalized_value(
|
self.set_normalized_value(
|
||||||
|
|
Loading…
Add table
Reference in a new issue