Skip to content

Commit de2d4e7

Browse files
committed
fix: hover highlights not getting cleared when dragging an svg
1 parent a488e81 commit de2d4e7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/LiveDevelopment/BrowserScripts/RemoteFunctions.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4637,8 +4637,9 @@ function RemoteFunctions(config = {}) {
46374637
}
46384638

46394639
function onElementHover(event) {
4640-
// don't want highlighting and stuff when auto scrolling
4641-
if (_isAutoScrolling) {
4640+
// don't want highlighting and stuff when auto scrolling or when dragging (svgs)
4641+
// for dragging normal html elements its already taken care of...so we just add svg drag checking
4642+
if (_isAutoScrolling || window._isDraggingSVG) {
46424643
return;
46434644
}
46444645

0 commit comments

Comments
 (0)