Beispiel #1
0
        public void SendBrowserScrolled(BrowserScrollPosition req)
        {
            if (peer == null || peer.PeerState != PeerStateValue.Connected)
                return;

            peer.OpCustom((byte)DiscussionOpCode.BrowserScrollChanged,
                          req.ToDict(),
                          true);
        }
Beispiel #2
0
 public void HandleBrowserScrollSubmitted(LitePeer peer,
                                        BrowserScrollPosition req,
                                        OperationRequest operationRequest,
                                        SendParameters sendParameters)
 {            
     _doc.BrowserScrollbarPosition = req;
     _room.Broadcast(peer,
                     req.ToDict(),
                     sendParameters,
                     (byte)DiscussionEventCode.BrowserScrollChangedEvent);
 }