Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

147
Views
Deslizar para editar Div Height Ipad browser

Quiero al tocar la línea rosa, el usuario podría deslizarse hacia arriba y hacia abajo para cambiar su posición, esto funciona perfectamente en un navegador de escritorio, pero tiene problemas cuando se usa un navegador de iPad

Aquí está mi código para deslizar y cambiar la altura:

 const handler = document.querySelector('.handler'); handler.addEventListener('touchstart', (e) => { // If mousedown event is fired from .handler, toggle flag to true this.isHandlerDragging = true; // @ts-ignore this.y = e.view.innerHeight; // @ts-ignore console.log(e.touches[0].clientY); }); document.addEventListener('touchmove', (ev) => { // console.log(ev); // If mousedown event is fired from .handler, toggle flag to true if (this.isHandlerDragging){ console.log('ev.touches[0].clientY = ' + ev.touches[0].clientY) console.log('this.y = ' + this.y) console.log('this.dy = ' + this.dy) // @ts-ignore this.dy = ev.touches[0].clientY - this.y; // @ts-ignore this.y = ev.touches[0].clientY; this.scrollSCNoStaff -= this.dy; this.heigthScrollNS += (this.dy); this.scrollHeigth += (this.dy / 2); } }); document.addEventListener('touchend', (e) => { // Turn off dragging flag when user mouse is up this.isHandlerDragging = false; });

Cuando trato de mover el mouse después de tocar la barra rosa, sube o baja muy rápido

ingrese la descripción de la imagen aquí Después de tocarlo y moverlo simplemente desaparece (la altura del div es superior a la altura de la pantalla) ingrese la descripción de la imagen aquí

Por favor ayuda

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!