Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

251
Vistas
Cannot drag element using JQuery draggable (plus JQuery Collision library)

I am trying to make a drag-and-drop software using jQuery draggable and jQuery collision extension.

I have two obstacles [in Red] where I can not drag any element. The problem is I can not drag any element even when there are no obstacles.

Here is my problem https://jsfiddle.net/ayank007/gqd3z0cp/28/ In this example, I am assuming 1 foot = 13.75px, which is also the grid size.

$(".obj3").draggable({
  grid: [13.75,13.75],
  snap: true,
  snapTolerance: 0,
  obstacle: ".butNotHere",
  preventCollision: true,
  containment: "parent"
})

Even without the Grid and Snapping, it's not possible to drag the element.

I want to drag the green div in between the obstacles (red). And even though there is space to drag, I can not drag the green div in between the red ones.

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda