iTwin / appui

Monorepo for iTwin.js AppUi
MIT License
8 stars 2 forks source link

Navigation Aid of main view affected by the viewport control that a widget maybe using #972

Open jason-crow opened 1 month ago

jason-crow commented 1 month ago

Describe the bug

The main view's navigation aid is changed after opening a widget with a viewport control to reflect the navigation aid of that viewport. This persists until the main view is interacted with to make it the active viewport.

To Reproduce

  1. Setup the main frontstage to show a 3d view in its viewport and include a widget with a viewport control that will open a 2d view (the difference between 2d and 3d makes the change to the navigation aid more obvious) when activated by another widget showing a list of 2d views (Note: I'm assuming if the widget with the 2d viewport auto opens it might not necessarily be the active viewport, but if the widget is triggered to open after the frontstage is already opened then this will definitely be the case)
  2. Open that frontstage
  3. Active the widget with the 2d viewport control by selecting a 2d view from the list widget
  4. Notice the navigation aid in the main viewport will reflect the 2d view of the widget's viewport control instead of the 3d view it shows

Expected Behavior

Expect the widget's viewport control to not affect the navigation aid of the main view when activated

Screenshots

Recording 2024-08-14 at 09 32 58

Desktop (please complete the applicable information)

Additional context

No response