-
Notifications
You must be signed in to change notification settings - Fork 26.6k
Closed
Labels
Milestone
Description
Is this a bug report or a feature request?
- Bug Report
- Feature Request
Please provide the steps to reproduce the issue [Bug Report only]
- Open the stackblitz stackblitz, which does nothing except trigger a change detection every second.
- Open the Angular devtools on the page.
- Navigate to the injector tree tab in the Angular devtools.
- Pan either the environment hierarchy or injector hierarchy diagrams.
- Observe that the view you panned resets after at most one second, when the change detection happens.
Please provide the expected behavior vs the actual behavior you encountered [Bug Report only]
Actual behaviour: the diagrams move to the roots of the hierarchies whenever change detection happens.
Expected behaviour:
- If the hierarchy doesn’t change at all, the current state of the diagram (panning and zoom) should stay as they were before the change detection.
- It would be awesome (though probably hard to achieve) to not change the panning and zoom even if there are (some) changes to the hierarchy, though the exact expected behaviour is probably up to a lot of debate. This part is more of a feature request and probably out of scope for the bug fix, but I wanted to mention it.
Please provide a screenshot if possible [Bug Report only]
No response
Please provide the exception or error you saw [Bug Report only]
No error
Is this a browser-specific issue? If so, please specify the device, browser, and version. [Bug Report only]
Reproducible in Firefox and chromium
Description [Feature Request only]
No response
Proposed solution [Feature Request only]
No response
Alternatives considered [Feature Request only]
No response
ehontz