diff --git a/internal/webrtc/handle.go b/internal/webrtc/handle.go index 35c4b235..851cfd66 100644 --- a/internal/webrtc/handle.go +++ b/internal/webrtc/handle.go @@ -63,7 +63,6 @@ func (manager *WebRTCManager) handle(id string, msg webrtc.DataChannelMessage) e } manager.remote.Move(int(payload.X), int(payload.Y)) - break case OP_SCROLL: payload := &PayloadScroll{} if err := binary.Read(buffer, binary.LittleEndian, payload); err != nil { @@ -77,7 +76,6 @@ func (manager *WebRTCManager) handle(id string, msg webrtc.DataChannelMessage) e Msg("scroll") manager.remote.Scroll(int(payload.X), int(payload.Y)) - break case OP_KEY_DOWN: payload := &PayloadKey{} if err := binary.Read(buffer, binary.LittleEndian, payload); err != nil { @@ -101,8 +99,6 @@ func (manager *WebRTCManager) handle(id string, msg webrtc.DataChannelMessage) e manager.logger.Debug().Msgf("key down %d", payload.Key) } - - break case OP_KEY_UP: payload := &PayloadKey{} err := binary.Read(buffer, binary.LittleEndian, payload)