Skip to content

vajsp/synchronous-scroll

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

滑动同步demo

    两个屏幕同步操作  
    通过socket和better-scroll实现  

运行

    `npm start`分别启动my-server、client1、client2

注意

    需要修改client1中`better-scroll`源码bscroll.esm.js大概1416行添加一个自定义事件_scroll。
   BScroll.prototype._translate = function (x, y, scale) {
       // 添加一个自定义的事件
       this.trigger('_scroll', {
           x: x,
           y: y
       });
       <!-- 省略 -->
   }

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published