debug
This commit is contained in:
parent
e5a9786af3
commit
0e76cd4230
@ -2583,6 +2583,21 @@ class App extends React.Component<AppProps, AppState> {
|
||||
this.handleWheel,
|
||||
{ passive: false },
|
||||
),
|
||||
addEventListener(window, "focusin", (event) => {
|
||||
console.log("%c@@@@@@ focusin:", "color:lime", event.target);
|
||||
const target = event.target;
|
||||
if (
|
||||
event.target instanceof HTMLElement &&
|
||||
this.state.editingTextElement
|
||||
) {
|
||||
if (event.target.tagName !== "TEXTAREA") {
|
||||
this.focusContainer();
|
||||
}
|
||||
}
|
||||
}),
|
||||
addEventListener(window, "focusout", (event) => {
|
||||
console.log("%c@@@@@@ focusout:", "color:red", event.target);
|
||||
}),
|
||||
addEventListener(window, EVENT.MESSAGE, this.onWindowMessage, false),
|
||||
addEventListener(document, EVENT.POINTER_UP, this.removePointer, {
|
||||
passive: false,
|
||||
|
Loading…
x
Reference in New Issue
Block a user