diff --git a/plugins/alignments/src/LinearSNPCoverageDisplay/model.ts b/plugins/alignments/src/LinearSNPCoverageDisplay/model.ts
index 9229f97dee..37b802003e 100644
--- a/plugins/alignments/src/LinearSNPCoverageDisplay/model.ts
+++ b/plugins/alignments/src/LinearSNPCoverageDisplay/model.ts
@@ -57,7 +57,7 @@ function stateModelFactory(
/**
* #property
*/
- showIndicators: types.maybe(types.boolean),
+ showInterbaseIndicators: types.maybe(types.boolean),
/**
* #property
*/
@@ -159,17 +159,15 @@ function stateModelFactory(
const configBlob =
getConf(self, ['renderers', self.rendererTypeName]) || {}
- const {
- showArcs: showArcs,
- showInterbaseCounts,
- showIndicators: showIndicators,
- } = self
+ const { showArcs, showInterbaseCounts, showInterbaseIndicators } =
+ self
return self.rendererType.configSchema.create(
{
...configBlob,
showInterbaseCounts:
showInterbaseCounts ?? configBlob.showInterbaseCounts,
- showIndicators: showIndicators ?? configBlob.showIndicators,
+ showInterbaseIndicators:
+ showInterbaseIndicators ?? configBlob.showInterbaseIndicators,
showArcs: showArcs ?? configBlob.showArcs,
},
getEnv(self),
@@ -195,10 +193,10 @@ function stateModelFactory(
/**
* #getter
*/
- get showIndicatorsSetting() {
+ get showInterbaseIndicatorsSetting() {
return (
- self.showIndicators ??
- readConfObject(this.rendererConfig, 'showIndicators')
+ self.showInterbaseIndicators ??
+ readConfObject(this.rendererConfig, 'showInterbaseIndicators')
)
},
@@ -238,8 +236,8 @@ function stateModelFactory(
/**
* #action
*/
- setShowIndicators(arg: boolean) {
- self.showIndicators = arg
+ setShowInterbaseIndicators(arg: boolean) {
+ self.showInterbaseIndicators = arg
},
/**
* #action
@@ -368,9 +366,11 @@ function stateModelFactory(
label: 'Show insertion/clipping indicators',
icon: VisibilityIcon,
type: 'checkbox',
- checked: self.showIndicatorsSetting,
+ checked: self.showInterbaseIndicatorsSetting,
onClick: () => {
- self.setShowIndicators(!self.showIndicatorsSetting)
+ self.setShowInterbaseIndicators(
+ !self.showInterbaseIndicatorsSetting,
+ )
},
},
{
diff --git a/plugins/variants/src/MultiLinearVariantDisplay/components/Crosshair.tsx b/plugins/variants/src/MultiLinearVariantDisplay/components/Crosshair.tsx
index 3ecc23da19..fc04f5e498 100644
--- a/plugins/variants/src/MultiLinearVariantDisplay/components/Crosshair.tsx
+++ b/plugins/variants/src/MultiLinearVariantDisplay/components/Crosshair.tsx
@@ -35,7 +35,7 @@ const Crosshair = observer(function ({
const { hoveredGenotype, height, scrollTop, rowHeight, sources } = model
const { width } = getContainingView(model) as LinearGenomeViewModel
const source = sources?.[Math.floor(mouseY / rowHeight)]
- const y = mouseY - lineZoneHeight - scrollTop
+ const y = mouseY - scrollTop
return source ? (