fix(core): fix active view with mouse (#6994)
This commit is contained in:
@@ -64,11 +64,11 @@ const WorkbenchView = ({ view, index }: { view: View; index: number }) => {
|
|||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (containerRef.current) {
|
if (containerRef.current) {
|
||||||
const element = containerRef.current;
|
const element = containerRef.current;
|
||||||
element.addEventListener('mousedown', handleOnFocus, {
|
element.addEventListener('pointerdown', handleOnFocus, {
|
||||||
capture: true,
|
capture: true,
|
||||||
});
|
});
|
||||||
return () => {
|
return () => {
|
||||||
element.removeEventListener('mousedown', handleOnFocus, {
|
element.removeEventListener('pointerdown', handleOnFocus, {
|
||||||
capture: true,
|
capture: true,
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user