lint & format
This commit is contained in:
@@ -210,7 +210,9 @@ class Collab extends PureComponent<CollabProps, CollabState> {
|
||||
window.addEventListener(EVENT.UNLOAD, this.onUnload);
|
||||
|
||||
const unsubOnUserFollow = this.excalidrawAPI.onUserFollow((payload) => {
|
||||
this.portal.socket && this.portal.broadcastUserFollowed(payload);
|
||||
if (this.portal.socket) {
|
||||
this.portal.broadcastUserFollowed(payload);
|
||||
}
|
||||
});
|
||||
const throttledRelayUserViewportBounds = throttleRAF(
|
||||
this.relayVisibleSceneBounds,
|
||||
@@ -915,9 +917,9 @@ class Collab extends PureComponent<CollabProps, CollabState> {
|
||||
button: SocketUpdateDataSource["MOUSE_LOCATION"]["payload"]["button"];
|
||||
pointersMap: Gesture["pointers"];
|
||||
}) => {
|
||||
payload.pointersMap.size < 2 &&
|
||||
this.portal.socket &&
|
||||
if (payload.pointersMap.size < 2 && this.portal.socket) {
|
||||
this.portal.broadcastMouseLocation(payload);
|
||||
}
|
||||
},
|
||||
CURSOR_SYNC_TIMEOUT,
|
||||
);
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
@import "../../packages/excalidraw/css/variables.module.scss";
|
||||
@use "../../packages/excalidraw/css/variables.module.scss" as *;
|
||||
|
||||
.excalidraw {
|
||||
.collab-errors-button {
|
||||
|
||||
@@ -46,7 +46,7 @@ class Portal {
|
||||
trackEvent("share", "room joined");
|
||||
}
|
||||
});
|
||||
this.socket.on("new-user", async (_socketId: string) => {
|
||||
this.socket.on("new-user", async () => {
|
||||
this.broadcastScene(
|
||||
WS_SUBTYPES.INIT,
|
||||
this.collab.getSceneElementsIncludingDeleted(),
|
||||
|
||||
Reference in New Issue
Block a user