Beispiel #1
0
        public void SendPdfScrolled(int ownerId, double x, double y, float zoom, int topicId)
        {
            if (peer == null || peer.PeerState != PeerStateValue.Connected)
                return;

            var req = new PdfScrollPosition {ownerId = ownerId, topicId = topicId, X = x, Y = y, Zoom = zoom};
            peer.OpCustom((byte)DiscussionOpCode.PdfScrollChanged,
                          req.ToDict(),
                          true);
        }
Beispiel #2
0
 public void HandlePdfScrollSubmitted(LitePeer peer,
                                       PdfScrollPosition req,
                                       OperationRequest operationRequest,
                                       SendParameters sendParameters)
 {
     _doc.PdfScrollPosition = req;
     _room.Broadcast(peer,
                     req.ToDict(),
                     sendParameters,
                     (byte)DiscussionEventCode.PdfScrollChangedEvent);
 }