mirror of
https://github.com/rubickCenter/rubick
synced 2025-12-23 10:40:12 +08:00
🔨 优化mac拖拽
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user