Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

234
Visualizações
Moveable controls not scrolling with the content

I am using Moveable library to drag and resize elements.

Below is my code for the vuejs app.

      moveable: {
        draggable: true,
        throttleDrag: 0,
        resizable: true,
        throttleResize: 1,
        keepRatio: false,
        scalable: true,
        throttleScale: 0,
        rotatable: true,
        throttleRotate: 0,
        pinchable: true, // ["draggable", "resizable", "scalable", "rotatable"]
        origin: false
      }

Below is the HTML code for the same

        <div id="editor">
          <Moveable
           class="moveable"
           v-bind="moveable"
           @drag="handleDrag"
           @resize="handleResize"
           @scale="handleScale"
           @rotate="handleRotate"
           @warp="handleWarp"
           @pinch="handlePinch"
         >
          <span>
           This is moveable div
          </span>
         </Moveable>
       </div>


So it appears like below.

enter image description here

But when I drag the moveable element, controls are not getting dragged along with with the element. It is getting fixed.

enter image description here

I also tried to give the container property to the moveable object like this container: document.getElementById('editor'), but then also it's not working as expected.

I am not sure what the problem is.

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda