(y: number)
| 32 | const size = await getCurrentWindow().outerSize(); |
| 33 | const logicalHeight = isMac ? size.height / (await getCurrentWindow().scaleFactor()) : size.height; |
| 34 | const getDropLocation = (y: number) => |
| 35 | y <= logicalHeight / 3 ? "top" : y <= (logicalHeight / 3) * 2 ? "middle" : "bottom"; |
| 36 | |
| 37 | if (event.payload.type === "over") { |
| 38 | cancelAnimation(); |