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

110
Vistas
jquery draggable: draggable stays stationary on page scroll

I'm sure it's something simple I'm missing, but I can't find a google or SO search that returns relevant results because of keyword overlap.

I've got the image of a form with lots of lines that I drag fields onto using cropper. It's complex and I lose track of where I am on the page, so I'd like to "put a pin in it", that is to say: drag a pin off the toolbar and drop it where I'm working.

That's easy: span with a fontawesome pin icon, draggable(), done.

$("#spanPin").draggable({containment: ".imgCrop_dragArea"});

Except that when I scroll, the pin is fixed to the viewport, not the element underneath: the form scrolls out from under the pin and I lose my place.

How can I fix the pin to the element, not the viewport?

(I tried pin.js, but that created more errors than it solved.)

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