Skip to content

Commit

Permalink
Defaulting to hovering mouse
Browse files Browse the repository at this point in the history
  • Loading branch information
mcottontensor committed May 17, 2023
1 parent 3178ad8 commit 9b97fdf
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions CarConfigurator-UI/src/CarConfigurator/CarConfigurator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,13 @@ export class CarConfigurator {

this.stream = options.stream;
this.onColorModeChanged = options.onColorModeChanged;

// default to hovering mouse unless otherwise specified in the url
const urlParams = new URLSearchParams(window.location.search);
if (!urlParams.has(Flags.HoveringMouseMode)) {
this.stream.config.setFlagEnabled(Flags.HoveringMouseMode, true);
}

this.configUI = new ConfigUI(this.stream.config);

this.createOverlays();
Expand Down

0 comments on commit 9b97fdf

Please sign in to comment.