Closed fdwr closed 1 month ago
It might be a collateral side effect of attempting to address this issue: https://github.com/lutzroeder/netron/issues/1344
@fdwr When a node is selected, the app scrolls the selected node to the center of the graph view (link) and I personally think it's a little excessive. By updating the code like this link, the scrolling occurs less often but it might be less exciting to scrolling addicts.
@beru can you create a pull request, ideally addressing the scrollbar issue. @fdwr can you help test and review if the suggested change addresses the issue.
@lutzroeder element.clientWidth
doesn't include width of scrollbar so I'm thinking to use this.
https://stackoverflow.com/a/40568748
Currently, the app scrolls a selected node to the center of the graph view. With the change I'm about to introduce with a new PR, the scrolling will not occur when a whole rectangle area of selected node is in the container client area. I'm not really sure if this change of behaviour is acceptable but I'll open a PR anyways.
@fdwr can you help test and review if the suggested change addresses the issue.
Gladly - how? I just loaded ResNet into https://netron.app/, and the graph still shifts around on click 🤔. Might I need to explicitly refresh my browser cache?
@fdwr the change for automatic scroll (f1ecfef71014cd4e100b1d4c273f966f1c724852) has landed to main
branch very recently so it's not released yet. Given that Lutz has released new versions weekly, next version (Version 7.8.9) would be released on 21/09/2024.
The istructions to test developmenet code are written in https://github.com/lutzroeder/netron/blob/main/CONTRIBUTING.md#debugging You may still experience jumps of scroll with the updated code, though I hope they are reduced.
Steps to Reproduce:
Any.