Issue with Nested Usage of vue-virtual-scroll Components

Author: srackhallCreated Mar 9, 2024Updated Mar 2, 2025
Labelsbug

Describe the bug

I encountered a bug related to the nested usage of components provided by vue-virtual-scroll. The nesting involves an outer vertical virtual list and an inner horizontal virtual list.

The bug manifests as follows: Click events on elements of the inner horizontal list can be triggered normally by default. However, after horizontal scrolling, when returning to the original position, the events can no longer be triggered properly.

Reproduction

  1. Set up a vue-virtual-scroll with nested vertical and horizontal lists.
  2. Click on an element in the inner horizontal list - observe that the event is triggered.
  3. Scroll horizontally.
  4. Return to the original position and click on the same element - observe that the event is not triggered.

System Info

bash
win10
chrome

Used Package Manager

npm

Validations

Source: Akryum/vue-virtual-scroller