Merge branch 'dev_vite' of http://18.167.251.121:10003/aidlab/aida_front into dev_vite
This commit is contained in:
@@ -406,7 +406,8 @@ export class BrushIndicator {
|
|||||||
this._mouseMoveHandler = (e) => {
|
this._mouseMoveHandler = (e) => {
|
||||||
if (this._shouldShowIndicator()) {
|
if (this._shouldShowIndicator()) {
|
||||||
if (!this.isVisible) {
|
if (!this.isVisible) {
|
||||||
this.show(e.e);
|
// this.show(e.e);
|
||||||
|
this._mouseEnterHandler && this._mouseEnterHandler(e)
|
||||||
} else {
|
} else {
|
||||||
// requestIdleCallback(() => {
|
// requestIdleCallback(() => {
|
||||||
// this.updatePosition(e.e);
|
// this.updatePosition(e.e);
|
||||||
@@ -433,7 +434,6 @@ export class BrushIndicator {
|
|||||||
*/
|
*/
|
||||||
_unbindEvents() {
|
_unbindEvents() {
|
||||||
if (!this.canvas) return;
|
if (!this.canvas) return;
|
||||||
|
|
||||||
// 解绑鼠标事件
|
// 解绑鼠标事件
|
||||||
if (this._mouseEnterHandler) {
|
if (this._mouseEnterHandler) {
|
||||||
this.canvas.off("mouse:over", this._mouseEnterHandler);
|
this.canvas.off("mouse:over", this._mouseEnterHandler);
|
||||||
|
|||||||
Reference in New Issue
Block a user