We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a0bff6 commit 99175e7Copy full SHA for 99175e7
extensions/ql-vscode/src/view/results/Graph.tsx
@@ -48,7 +48,10 @@ export function Graph({ graphData, databaseUri }: GraphProps) {
48
d.attributes["xlink:href"] = "#";
49
d.attributes["href"] = "#";
50
loc.uri = `file://${loc.uri}`;
51
- select(this).on("click", () => jumpToLocation(loc, databaseUri));
+ select(this).on("click", (event: Event) => {
52
+ jumpToLocation(loc, databaseUri);
53
+ event.preventDefault(); // Avoid resetting scroll position
54
+ });
55
}
56
57
if ("fill" in d.attributes) {
0 commit comments