1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-10 09:22:25 +03:00

Add dragCallbacks

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
Šimon Brandner
2021-05-02 16:23:35 +02:00
parent d203e8f129
commit bebcb32e8f

View File

@@ -49,6 +49,13 @@ interface IProps {
// This is sort of a proxy for a number of things but we currently have no
// need to control those things separately, so this is simpler.
pipMode?: boolean;
// Callbacks for dragging the CallView in PIP mode
dragCallbacks?: {
onStartMoving: (event: React.MouseEvent) => void;
onMoving: (event: React.MouseEvent) => void;
onEndMoving: () => void;
}
}
interface IState {