Solve the problem of data synchronization when vue-seamless-scroll scrolls and likes

Solve the problem of data synchronization when vue-seamless-scroll scrolls and likes

VUE uses vue-seamless-scroll to automatically scroll and like. Because there are two overhidden, the clicks are not synchronized with the DOM. There will be two vue-seamless-scrolls suspended up and down in the code. The like trigger at the suspended part has no response. The reason is: the suspended vue-seamless-scroll below is static and the DOM is not synchronized.

Solution: Add this.$refs.seamlessScroll.reset() to indicate reset

This is the end of this article about solving the data asynchrony problem at the connection point of vue-seamless-scroll and likes. For more relevant vue-seamless-scroll content, please search for previous articles on 123WORDPRESS.COM or continue to browse the related articles below. I hope you will support 123WORDPRESS.COM in the future!

You may also be interested in:
  • Vue implements the function of like and cancel like on static pages
  • Example of Vue transition to achieve like animation effect
  • Vue+Bootstrap collection (like) function logic and specific implementation
  • Vue sample code for implementing the likes and floating heart effect in the live broadcast room
  • Summary of communication examples between Vue components (like function)
  • VUE uses vuex to simulate the news like function example
  • Vue development to realize comment list
  • Vue implements comment list
  • Vue implements simple comment function
  • Vue implements article likes and dislike functions

<<:  Monitor the size change of a DOM element through iframe

>>:  How many ports can a Linux server open at most?

Recommend

Implementation of building custom images with Dockerfile

Table of contents Preface Introduction to Dockerf...

Detailed explanation of MySQL cursor concepts and usage

This article uses examples to explain the concept...

How to create a table in mysql and add field comments

Directly post code and examples #Write comments w...

vue-cropper component realizes image cutting and uploading

This article shares the specific code of the vue-...

mysql5.7.17.msi installation graphic tutorial

mysql-5.7.17.msi installation, follow the screens...

Detailed explanation of common template commands in docker-compose.yml files

Note: When writing the docker-compose.yml file, a...

Example of using swiper plugin to implement carousel in Vue

Table of contents vue - Use swiper plugin to impl...

jQuery implements the mouse drag image function

This example uses jQuery to implement a mouse dra...

Pure CSS code to achieve drag effect

Table of contents 1. Drag effect example 2. CSS I...

How to quickly log in to MySQL database without password under Shell

background When we want to log in to the MySQL da...

Summary of the Differences between SQL and NoSQL

Main differences: 1. Type SQL databases are prima...

Quickly solve the problem of slow startup after Tomcat reconfiguration

During the configuration of Jenkins+Tomcat server...