Browse Source

horizontal scroll

Bachir Soussi Chiadmi 11 months ago
parent
commit
ea45802b9f
1 changed files with 5 additions and 0 deletions
  1. 5 0
      index.js

+ 5 - 0
index.js

@@ -23,4 +23,9 @@ io.on('connection', function(socket) {
       console.log('zoom')
       io.emit('zoom', data)
     })
+
+    socket.on('scroll', function(data) {
+      console.log('scroll')
+      io.emit('scroll', data)
+    })
 });