Vue-devtools: Disable components pane auto-scroll

Created on 12 Jan 2017  路  5Comments  路  Source: vuejs/vue-devtools

In the standard Chrome dev-tools, a user must right-click on an element in the elements pane and select scroll into view. In the Vuejs Chrome Dev-tools, the root element of a component is scrolled to when a component in the components pane is clicked on. Sometimes when viewing a large (large height, or large width) component and looking at a child, when I click on the component in the components pane, the window scrolls which is not what I want while inspecting the child.

My request is that there be right-click menu to behave how the elements pane does, or that there is an option to disable auto-scroll. I can start work on this, but want to know whether either of these changes are acceptable.

image

feature request

Most helpful comment

This usually very useful, but I've come across an instance where it is making Vue devtools almost unusable.

I've had to create a page that has the potential to generate tables with thousands of rows. To improve performance on some slow computers & browsers, I've had to "window" the rows of the table, so it actually only renders the rows that are in the view-port.

When I click on one of the components that makes a row in the table, devtools scrolls so the row is at the top of the window, then the rows that are shown change due to the scroll. This deselects the row in Vue devtools.

Also, I sometimes find it inconvenient when I already have the component I want to select in view, but clicking the component in devtools puts it at the top of the window, especially when you have something with "position: fixed" at the top of the screen.

I would recommend having an opt-out option to not scroll, or perhaps just not scroll if the component is currently in the browser window.

All 5 comments

@posva is disabling the auto-scroll in favor of a context-menu selection favorable? If so, I can begin working on this feature.

Personally, I find it better the way it is because I usually want the view to scroll down to where it is
I think we should gather more feedback before implementing it

Another possibility will be to add some buttons while hovering to scroll to the element in a similar fashion as the mutations in the vuex panel

This usually very useful, but I've come across an instance where it is making Vue devtools almost unusable.

I've had to create a page that has the potential to generate tables with thousands of rows. To improve performance on some slow computers & browsers, I've had to "window" the rows of the table, so it actually only renders the rows that are in the view-port.

When I click on one of the components that makes a row in the table, devtools scrolls so the row is at the top of the window, then the rows that are shown change due to the scroll. This deselects the row in Vue devtools.

Also, I sometimes find it inconvenient when I already have the component I want to select in view, but clicking the component in devtools puts it at the top of the window, especially when you have something with "position: fixed" at the top of the screen.

I would recommend having an opt-out option to not scroll, or perhaps just not scroll if the component is currently in the browser window.

I just came across a case where I was debugging a component reacting to page scroll: the current behavior is nightmarish. 馃槶

I always find the page scrolls right to the top, which is annoying as then the component is hidden under my top nav!

Would be better to scroll to the middle if anything.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

stiltet picture stiltet  路  3Comments

psycura picture psycura  路  4Comments

topul picture topul  路  4Comments

gustojs picture gustojs  路  3Comments

trollderius picture trollderius  路  3Comments