Skip to content
Snippets Groups Projects
Commit f57e8501 authored by Alexander Rose's avatar Alexander Rose
Browse files

fix order in LociMarkManager.normalizedLoci

parent 1e9fa003
No related branches found
No related tags found
No related merge requests found
......@@ -97,9 +97,6 @@ namespace Interactivity {
// convert Link.Loci to a StructureElement.Loci so granularity can be applied
loci = Link.toStructureElementLoci(loci)
}
if (applyGranularity) {
loci = Granularity[this.props.granularity](loci)
}
if (Structure.isLoci(loci)) {
// convert to StructureElement.Loci
loci = Structure.toStructureElementLoci(loci)
......@@ -108,6 +105,10 @@ namespace Interactivity {
// ensure the root structure is used
loci = StructureElement.Loci.remap(loci, loci.structure.root)
}
if (applyGranularity) {
// needs to be applied AFTER remapping to root
loci = Granularity[this.props.granularity](loci)
}
return { loci, repr }
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment