🔨 优化mac拖拽

This commit is contained in:
layyback
2023-04-08 20:13:48 +08:00
parent 2cd70bd386
commit edbc4d0749
2 changed files with 11 additions and 1 deletions

View File

@@ -1,4 +1,5 @@
import { ipcRenderer } from 'electron';
import commonConst from './commonConst';
const useDrag = () => {
let animationId: number;
@@ -9,6 +10,7 @@ const useDrag = () => {
let draggable = true;
const onMouseDown = (e) => {
if (commonConst.macOS()) return;
draggable = true;
mouseX = e.clientX;
mouseY = e.clientY;