mirror of
https://github.com/emilk/egui.git
synced 2026-09-02 14:50:03 -04:00
Fix scroll area in scroll area
This commit is contained in:
@@ -1198,10 +1198,9 @@ impl Prepared {
|
|||||||
// Clear scroll delta so no parent scroll will use it:
|
// Clear scroll delta so no parent scroll will use it:
|
||||||
ui.input_mut(|input| {
|
ui.input_mut(|input| {
|
||||||
if always_scroll_enabled_direction {
|
if always_scroll_enabled_direction {
|
||||||
input.smooth_scroll_delta()[0] = 0.0;
|
input.smooth_scroll_delta = Vec2::ZERO;
|
||||||
input.smooth_scroll_delta()[1] = 0.0;
|
|
||||||
} else {
|
} else {
|
||||||
input.smooth_scroll_delta()[d] = 0.0;
|
input.smooth_scroll_delta[d] = 0.0;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user