mirror of
https://github.com/idrawjs/idraw
synced 2026-05-24 10:08:34 +00:00
fix: @idraw/core screenSelectElement trigger wrong uuid
This commit is contained in:
parent
c05921e0e8
commit
f04f66f092
2 changed files with 4 additions and 4 deletions
|
|
@ -212,7 +212,7 @@ class Core {
|
|||
this[_selectedDotDirection] = direction;
|
||||
this[_selectedUUID] = uuid;
|
||||
} else {
|
||||
const [index] = this[_element].isPointInElement(point, this[_data]);
|
||||
const [index, uuid] = this[_element].isPointInElement(point, this[_data]);
|
||||
this.selectElement(index);
|
||||
if (typeof uuid === 'string' && this[_coreEvent].has('screenSelectElement')) {
|
||||
this[_coreEvent].trigger(
|
||||
|
|
|
|||
|
|
@ -28,13 +28,13 @@ export class Renderer {
|
|||
});
|
||||
// TODO
|
||||
this._loader.on('load', (res) => {
|
||||
console.log('load: ', res);
|
||||
// console.log('load: ', res);
|
||||
});
|
||||
this._loader.on('error', (res) => {
|
||||
console.log('error: ', res);
|
||||
// console.log('error: ', res);
|
||||
});
|
||||
this._loader.on('complete', (res) => {
|
||||
console.log('complete: ', res);
|
||||
// console.log('complete: ', res);
|
||||
})
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue