Skip to content

Commit

Permalink
Move the userMaxBpPerPx to track model so that it persists across ref…
Browse files Browse the repository at this point in the history
…resh
  • Loading branch information
cmdcolin committed Feb 16, 2021
1 parent 3958742 commit 121ab19
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ export const BaseLinearDisplay = types
defaultDisplayHeight,
),
blockState: types.map(BlockState),
userBpPerPxLimit: types.maybe(types.number),
}),
)
.volatile(() => ({
Expand All @@ -56,7 +57,6 @@ export const BaseLinearDisplay = types
contextMenuFeature: undefined as undefined | Feature,
additionalContextMenuItemCallbacks: [] as Function[],
scrollTop: 0,
userBpPerPxLimit: undefined as undefined | number,
}))
.views(self => ({
/**
Expand Down

0 comments on commit 121ab19

Please sign in to comment.