mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-04-06 03:57:56 +08:00
parent
436fb3f5aa
commit
3b789f4d13
@ -83,6 +83,10 @@ export default class ActionManager extends EventEmitter {
|
||||
private getRenderDocument: GetRenderDocument;
|
||||
|
||||
private mouseMoveHandler = throttle(async (event: MouseEvent): Promise<void> => {
|
||||
if ((event.target as HTMLDivElement)?.classList?.contains('moveable-direction')) {
|
||||
return;
|
||||
}
|
||||
|
||||
const el = await this.getElementFromPoint(event);
|
||||
if (!el) {
|
||||
this.clearHighlight();
|
||||
@ -90,7 +94,6 @@ export default class ActionManager extends EventEmitter {
|
||||
}
|
||||
|
||||
this.emit('mousemove', event);
|
||||
|
||||
this.highlight(el);
|
||||
}, throttleTime);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user