bug del scroll en ventas solucionado y scroll en carrito agregado

This commit is contained in:
Carlos Sandoval
2024-07-07 18:40:32 -06:00
parent d60d438d38
commit 8e35230d77
11 changed files with 72 additions and 67 deletions
+4 -3
View File
@@ -61,7 +61,7 @@ namespace compabetov2
private void FlowLayoutPanel3_MouseDown(object sender, MouseEventArgs e)
{
lastPoint = new Point(e.X, e.Y);
flowLayoutPanel3.Capture = true;
flowLayoutPanel3.Capture = false;
}
private void FlowLayoutPanel3_MouseMove(object sender, MouseEventArgs e)
@@ -142,7 +142,7 @@ namespace compabetov2
pic.Controls.Add(id);
Label precio = new Label();
precio.Text = "$" + producto.precioCompra.ToString() + " - " + producto.nombre;
precio.Text = "$" + producto.precio.ToString() + " - " + producto.nombre;
precio.BackColor = Color.FromArgb(82, 82, 82);
precio.ForeColor = Color.White;
precio.Width = 40;
@@ -208,7 +208,7 @@ namespace compabetov2
flowLayoutPanel3.AutoScrollPosition = new Point(-scrollPosition.X, -scrollPosition.Y); // Restaurar posición de scroll
flowLayoutPanel3.MouseMove += FlowLayoutPanel3_MouseMove; // Reactivar el evento MouseMove
txtbusqueda.Focus();
});
@@ -258,6 +258,7 @@ namespace compabetov2
flowLayoutPanel3.AutoScrollPosition = new Point(-scrollPosition.X, -scrollPosition.Y); // Restaurar posición de scroll
flowLayoutPanel3.MouseMove += FlowLayoutPanel3_MouseMove; // Reactivar el evento MouseMove
txtbusqueda.Focus();
});