File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/LiveDevelopment/BrowserScripts Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -2483,14 +2483,14 @@ function RemoteFunctions(config) {
24832483 var oldConfig = config ;
24842484 config = JSON . parse ( newConfig ) ;
24852485
2486- if ( config . highlight ) {
2487- // Add hover event listeners if highlight is enabled
2486+ if ( config . highlight || ( config . isLPEditFeaturesActive && shouldShowHighlightOnHover ( ) ) ) {
2487+ // Add hover event listeners if highlight is enabled OR editHighlights is set to hover
24882488 window . document . removeEventListener ( "mouseover" , onElementHover ) ;
24892489 window . document . removeEventListener ( "mouseout" , onElementHoverOut ) ;
24902490 window . document . addEventListener ( "mouseover" , onElementHover ) ;
24912491 window . document . addEventListener ( "mouseout" , onElementHoverOut ) ;
24922492 } else {
2493- // Remove hover event listeners if highlight is disabled
2493+ // Remove hover event listeners only if both highlight is disabled AND editHighlights is not set to hover
24942494 window . document . removeEventListener ( "mouseover" , onElementHover ) ;
24952495 window . document . removeEventListener ( "mouseout" , onElementHoverOut ) ;
24962496
You can’t perform that action at this time.
0 commit comments