refactor(front-end): remove handler for when the mouse pointer leaves the vnc container

main
Josue 3 years ago
parent 1a64ada0c3
commit fea3ae94fc
  1. 19
      striker-ui/components/Display/VncDisplay.tsx

@ -83,25 +83,10 @@ const VncDisplay = (props: Props): JSX.Element => {
document.activeElement.blur();
}
if (rfb?.current) {
rfb.current.focus();
}
};
const handleMouseLeave = () => {
if (rfb?.current) {
rfb.current.blur();
}
if (rfb?.current) rfb.current.focus();
};
return (
<div
style={style}
ref={screen}
onMouseEnter={handleMouseEnter}
onMouseLeave={handleMouseLeave}
/>
);
return <div style={style} ref={screen} onMouseEnter={handleMouseEnter} />;
};
export default memo(VncDisplay);

Loading…
Cancel
Save