Mini Program to achieve left slide deletion, will cause the list to scroll vertically, is there any way to limit it?

requirements require the product list to add a left slide delete function, but after adding, the left slide will cause scrolling up and down, how to limit it? Please tell me your thoughts

.

you can set up a flag,. First, add event detection in the left slide delete place, assign a value to the flag when marking the deletion, and then add an event to the list scrolling to check whether the flag is assigned. If there is an assignment, that is, when the deletion action is in progress, do not scroll. If not, just let the normal list scroll

Menu