iTwin / itwinjs-core

Monorepo for iTwin.js Library
https://www.itwinjs.org
MIT License
600 stars 210 forks source link

Clicking on the Camera tool repeatedly results in the view to zoom out a little bit each time. #6385

Closed mcayer-Bentley closed 7 months ago

mcayer-Bentley commented 7 months ago

Describe the bug When turning the camera ON and OFF reapeatedly, the view is zoomed out a little bit each time. Please see screen capture attached. The original view is when I open the iModel. original view This one is the zoom level we see after 6 clicks on the camera. after 6 clicks on the camera

To Reproduce Steps to reproduce the behavior:

  1. Open an iModel in iTwin.js viewer (i.e. Design Review)
  2. Click on the "Turn Camera OFF" and then "Turn Camera ON". Do it few times. RESULT: The view zooms out a little bit each time we click on the camera.

Expected behavior The view should not zoom out each time we click on the Camera tool. Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the applicable information):

Additional context Add any other context about the problem here.

pmconne commented 7 months ago

Why is this a problem (i.e., in what real workflow do users repeatedly turn camera off and on)?

mcayer-Bentley commented 7 months ago

You're right, this probably won't happen in a real workflow. This was reported by one of our QA managers who tests for edge cases.