🎧 New: AI-Generated Podcasts Turn your study notes into engaging audio conversations. Learn more

JavaScript scrolling function
10 Questions
0 Views

JavaScript scrolling function

Created by
@UndamagedProse

Podcast Beta

Play an AI-generated podcast conversation about this lesson

Questions and Answers

Que fait la fonction if (this.stickyScrollerIsScrolling) return clearTimeout(this.contentScrollerTimer) ?

  • Définit `contentScrollerIsScrolling` sur vrai si `stickyScrollerIsScrolling` est vrai
  • Définit `stickyScrollerIsScrolling` sur vrai si `contentScrollerIsScrolling` est vrai
  • Annule le délai d'attente du `contentScrollerTimer` si `stickyScrollerIsScrolling` est vrai (correct)
  • Aucune de ces réponses n'est correcte
  • Quelle est la fonction de this.contentScrollerTimer = setTimeout(() => { this.contentScrollerIsScrolling = false }, 100) ?

  • Elle définit `stickyScrollerIsScrolling` sur vrai après un délai de 100 millisecondes
  • Elle définit `contentScrollerIsScrolling` sur vrai après un délai de 100 millisecondes
  • Elle définit `contentScrollerIsScrolling` sur faux après un délai de 100 millisecondes (correct)
  • Elle définit `stickyScrollerIsScrolling` sur faux après un délai de 100 millisecondes
  • Que fait la fonction if (this.contentScrollerIsScrolling) return clearTimeout(this.sticckyScrollerTimer) ?

  • Aucune de ces réponses n'est correcte
  • Définit `contentScrollerIsScrolling` sur vrai si `stickyScrollerIsScrolling` est vrai
  • Définit `stickyScrollerIsScrolling` sur vrai si `contentScrollerIsScrolling` est vrai
  • Annule le délai d'attente du `sticckyScrollerTimer` si `contentScrollerIsScrolling` est vrai (correct)
  • Quelle est la fonction de this.sticckyScrollerTimer = setTimeout(() => { this.stickyScrollerIsScrolling = false }, 100) ?

    <p>Elle définit <code>stickyScrollerIsScrolling</code> sur faux après un délai de 100 millisecondes</p> Signup and view all the answers

    Quelle est la différence entre this.contentScrollerIsScrolling et this.stickyScrollerIsScrolling ?

    <p><code>this.contentScrollerIsScrolling</code> indique que le <code>contentScroller</code> est en train de défiler, tandis que <code>this.stickyScrollerIsScrolling</code> indique que le <code>stickyScroller</code> est en train de défiler</p> Signup and view all the answers

    ¿Cuál es el propósito principal de la función setTimeout utilizada en este código?

    <p>Establecer un temporizador para desactivar la bandera de desplazamiento después de un cierto tiempo</p> Signup and view all the answers

    ¿Cuál es la diferencia entre this.contentScrollerIsScrolling y this.stickyScrollerIsScrolling?

    <p>La primera se refiere al desplazamiento del contenido y la segunda al desplazamiento del elemento adhesivo</p> Signup and view all the answers

    ¿Cuál es el propósito de las instrucciones if (this.stickyScrollerIsScrolling) return clearTimeout(this.contentScrollerTimer) y if (this.contentScrollerIsScrolling) return clearTimeout(this.sticckyScrollerTimer)?

    <p>Eliminar los temporizadores de desplazamiento cuando se produce un desplazamiento en el elemento opuesto</p> Signup and view all the answers

    ¿Cuál es el propósito de la instrucción $refs.stickyScroller.parentElement.scrollLeft = e.target.scrollLeft?

    <p>Actualizar la posición de desplazamiento horizontal del elemento adhesivo en función del desplazamiento del elemento de contenido</p> Signup and view all the answers

    ¿Cuál es el propósito de la instrucción $refs.contentScroller.scrollLeft = e.target.scrollLeft?

    <p>Actualizar la posición de desplazamiento horizontal del elemento de contenido en función del desplazamiento del elemento adhesivo</p> Signup and view all the answers

    More Quizzes Like This

    JavaScript Editing Techniques
    3 questions
    JavaScript Flashcards
    95 questions

    JavaScript Flashcards

    JubilantUvarovite avatar
    JubilantUvarovite
    Javascript Classes Flashcards
    11 questions
    Use Quizgecko on...
    Browser
    Browser