We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0230413 commit d1b62a8Copy full SHA for d1b62a8
1 file changed
src/stores/minimap/minimap-reducer.ts
@@ -9,6 +9,11 @@ const updateDocumentState = (
9
) => {
10
if (action.type === 'minimap/set-card-ranges') {
11
state.ranges.cards = action.payload.ranges;
12
+ const newDocumentHeight =
13
+ state.scrollbar.totalDrawnHeight_cpx !== action.payload.height_cpx;
14
+ if (newDocumentHeight) {
15
+ state.scrollbar.scrollPosition_cpx = 0;
16
+ }
17
state.scrollbar.totalDrawnHeight_cpx = action.payload.height_cpx;
18
deriveScrollPosition(state);
19
} else if (action.type === 'minimap/set-active-node') {
0 commit comments