Skip to content

Commit 9b97fdf

Browse files
committed
Defaulting to hovering mouse
1 parent 3178ad8 commit 9b97fdf

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

CarConfigurator-UI/src/CarConfigurator/CarConfigurator.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,13 @@ export class CarConfigurator {
126126

127127
this.stream = options.stream;
128128
this.onColorModeChanged = options.onColorModeChanged;
129+
130+
// default to hovering mouse unless otherwise specified in the url
131+
const urlParams = new URLSearchParams(window.location.search);
132+
if (!urlParams.has(Flags.HoveringMouseMode)) {
133+
this.stream.config.setFlagEnabled(Flags.HoveringMouseMode, true);
134+
}
135+
129136
this.configUI = new ConfigUI(this.stream.config);
130137

131138
this.createOverlays();

0 commit comments

Comments
 (0)