mirror of
https://github.com/usebruno/bruno.git
synced 2025-01-21 05:08:41 +01:00
fix: rsbuild related error fixes (#3655)
This commit is contained in:
parent
993424a2b8
commit
19ad0ecef7
@ -93,9 +93,6 @@ if (!SERVER_RENDERED) {
|
|||||||
|
|
||||||
const box = target.getBoundingClientRect();
|
const box = target.getBoundingClientRect();
|
||||||
|
|
||||||
const hoverTime = getHoverTime(cm);
|
|
||||||
state.hoverTimeout = setTimeout(onHover, hoverTime);
|
|
||||||
|
|
||||||
const onMouseMove = function () {
|
const onMouseMove = function () {
|
||||||
clearTimeout(state.hoverTimeout);
|
clearTimeout(state.hoverTimeout);
|
||||||
state.hoverTimeout = setTimeout(onHover, hoverTime);
|
state.hoverTimeout = setTimeout(onHover, hoverTime);
|
||||||
@ -115,6 +112,9 @@ if (!SERVER_RENDERED) {
|
|||||||
onMouseHover(cm, box);
|
onMouseHover(cm, box);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const hoverTime = getHoverTime(cm);
|
||||||
|
state.hoverTimeout = setTimeout(onHover, hoverTime);
|
||||||
|
|
||||||
CodeMirror.on(document, 'mousemove', onMouseMove);
|
CodeMirror.on(document, 'mousemove', onMouseMove);
|
||||||
CodeMirror.on(cm.getWrapperElement(), 'mouseout', onMouseOut);
|
CodeMirror.on(cm.getWrapperElement(), 'mouseout', onMouseOut);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user