Akryum / vue-virtual-scroller

⚡️ Blazing fast scrolling for any amount of data
https://vue-virtual-scroller-demo.netlify.app
9.75k stars 916 forks source link

Issue with Nested Usage of vue-virtual-scroll Components #862

Open srackhall opened 8 months ago

srackhall commented 8 months ago

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

win10
chrome

Used Package Manager

npm

Validations

srackhall commented 8 months ago

Tips: use PageMode

srackhall commented 8 months ago

image Perhaps these abnormal doms are blocking the normal item doms. This should not be difficult to solve