title: Vue2 - Event does not fire when hitting the end of a horizontal scroll in Chromium on Windows 11
body: <p>I've been trying to find a solution for this but to no avail. The project uses Vue2.</p>
  <p>I have a container (<code>HorizontalScrollBoard.vue</code>) with a horizontal scroll inside, that can hold elements within it. Upon scrolling the <code>@scroll.passive</code> event gets triggered and emits a load-more event:</p>
  <pre><code>&lt;template&gt;
    &lt;div @scroll.passive=&quot;$emit('load-more', $event)&quot;&gt;
      &lt;div&gt;
        &lt;!-- @slot *Provides a place for the content.* --&gt;
        &lt;slot /&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/template&gt;
  </code></pre>
  <p>When using the <code>HorizontalScrollBoard.vue</code> it renders with a few default elements inside, and the combined width of those elements is always longer than the width of the container, so a horizontal scrollbar is always present on first render. The idea is that when the scroll hits the end of the container to the right, it will trigger the load-more handler and will fetch more elements.</p>
  <pre><code>&lt;HorizontalScrollBoard @load-more=&quot;handleHorizontalScrollEvent($event)&quot;&gt;
    &lt;element /&gt;
    &lt;element /&gt;
    &lt;element /&gt;
    &lt;div v-if=&quot;fetchedQuotes &amp;&amp; fetchedQuotes.length&quot;&gt;
      &lt;element v-for=&quot;(quote, i) in fetchedQuotes&quot; :key=&quot;`${quote.id}-${i}`&quot; /&gt;
    &lt;/div&gt;
  &lt;/HorizontalScrollBoard&gt;
  </code></pre>
  <p>The starting data:</p>
  <pre><code>data() {
    return {
      fetchedQuotes: [],
      loadingQuotes: false,
    };
  },
  </code></pre>
  <p>The handler that checks if you've hit the end of the scroll to the right, and calls a method if so:</p>
  <pre><code>handleHorizontalScrollEvent(event) {
    if (
      event.target.scrollLeft + event.target.offsetWidth === event.target.scrollWidth
      &amp;&amp; !this.loadingQuotes
    ) {
      this.loadInsightQuotes();
    }
  },
  </code></pre>
  <p>The method that gets called from the handler, which fetches more elements:</p>
  <pre><code>async loadInsightQuotes() {
    try {
      this.loadingQuotes = true;
  
      const response = await this.$api('studies').getInsightQuotes();
  
      this.fetchedQuotes = [...this.fetchedQuotes, ...response.data];
    } catch (e) {
      this.$errorHandler(e);
    } finally {
      this.loadingQuotes = false;
    }
  },
  </code></pre>
  <p>This gets fired in every browser on Mac, in every browser on Linux, and in every non-chromium browser on Windows. However Chromium browsers on Windows will not trigger the
  <code>handleHorizontalScrollEvent()</code> or <code>loadInsightQuotes()</code> not sure which one. No errors are present in the console apart from two warnings:</p>
  <pre><code>[Violation] Added non-passive event listener to a scroll-blocking 'wheel' event. 
  Consider marking event handler as 'passive' to make the page more responsive.
  
  [Violation] Added non-passive event listener to a scroll-blocking 'touchstart' event. 
  Consider marking event handler as 'passive' to make the page more responsive. 
  </code></pre>
  <p>As you can see the <code>@scroll</code> handler inside <code>HorizontalScrollBoard.vue</code> has a <code>.passive</code> param so not sure what Chrome wants. Any ideas will be much appreciated. If the provided info doesn't help to understand the problem I'd gladly give more, I've tried to simplify it as much as possible.</p>
  <p>Thank you all! </p>