Changed ambiguous .dragged() calls to dragged_by(PointerButton::Primary) to avoid conflicts down the line.

This commit is contained in:
2026-10-14 14:15:11 -07:00
parent 05955c08b4
commit d75a21deef
17 changed files with 39 additions and 39 deletions
+1 -1
View File
@@ -332,7 +332,7 @@ pub fn show(app: &mut EffectcraftApp, ctx: &egui::Context, t: &Tokens) {
if resp.clicked() || resp.drag_started() {
app.dialog_state.gradient.selected = Some((track, id));
}
if resp.dragged()
if resp.dragged_by(egui::PointerButton::Primary)
&& let Some(p) = resp.interact_pointer_pos()
{
app.dialog_state.gradient.move_to(track, id, pos_of(p.x));