mirror of
https://github.com/wavetermdev/waveterm.git
synced 2025-01-04 18:59:08 +01:00
update type
This commit is contained in:
parent
264d6568e2
commit
90dd297de5
@ -276,7 +276,7 @@ electron.ipcMain.on("getCursorPoint", (event) => {
|
|||||||
const window = electron.BrowserWindow.fromWebContents(event.sender);
|
const window = electron.BrowserWindow.fromWebContents(event.sender);
|
||||||
const screenPoint = electron.screen.getCursorScreenPoint();
|
const screenPoint = electron.screen.getCursorScreenPoint();
|
||||||
const windowRect = window.getContentBounds();
|
const windowRect = window.getContentBounds();
|
||||||
const retVal: Point = {
|
const retVal: Electron.Point = {
|
||||||
x: screenPoint.x - windowRect.x,
|
x: screenPoint.x - windowRect.x,
|
||||||
y: screenPoint.y - windowRect.y,
|
y: screenPoint.y - windowRect.y,
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user