mirror of
https://github.com/DefectingCat/DefectingCat.github.io
synced 2025-07-15 16:51:37 +00:00
add comment
This commit is contained in:
@ -86,6 +86,11 @@ export const generateToc = (source: string) => {
|
||||
return toc;
|
||||
};
|
||||
|
||||
/**
|
||||
* Get mouse or touch position on screen.
|
||||
* @param e Mouse or Touch event.
|
||||
* @returns
|
||||
*/
|
||||
export const getMousePosition = (e: MouseEvent | globalThis.TouchEvent) => {
|
||||
return e instanceof MouseEvent
|
||||
? {
|
||||
|
Reference in New Issue
Block a user