mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
fix logging.
This commit is contained in:
parent
3227978725
commit
40d820a3e0
@ -3,7 +3,6 @@ package webrtc
|
|||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
"encoding/binary"
|
"encoding/binary"
|
||||||
"strconv"
|
|
||||||
|
|
||||||
"github.com/pion/webrtc/v3"
|
"github.com/pion/webrtc/v3"
|
||||||
)
|
)
|
||||||
@ -71,8 +70,8 @@ func (manager *WebRTCManagerCtx) handle(msg webrtc.DataChannelMessage) error {
|
|||||||
|
|
||||||
manager.logger.
|
manager.logger.
|
||||||
Debug().
|
Debug().
|
||||||
Str("x", strconv.Itoa(int(payload.X))).
|
Int16("x", payload.X).
|
||||||
Str("y", strconv.Itoa(int(payload.Y))).
|
Int16("y", payload.Y).
|
||||||
Msg("scroll")
|
Msg("scroll")
|
||||||
|
|
||||||
manager.desktop.Scroll(int(payload.X), int(payload.Y))
|
manager.desktop.Scroll(int(payload.X), int(payload.Y))
|
||||||
|
Loading…
Reference in New Issue
Block a user