bigbluebutton-Github/bigbluebutton-html5/imports/api/cursor/server/modifiers/eventHandlers.js
2016-05-16 19:12:49 +00:00

15 lines
450 B
JavaScript

import { updateCursorLocation } from './updateCursorLocation';
import { eventEmitter } from '/imports/startup/server';
eventEmitter.on('presentation_cursor_updated_message', function (arg) {
const meetingId = arg.payload.meeting_id;
const cursor = {
x: arg.payload.x_percent,
y: arg.payload.y_percent,
};
// update the location of the cursor on the whiteboard
updateCursorLocation(meetingId, cursor);
return arg.callback();
});