Skip to content
Snippets Groups Projects
Commit 7b080408 authored by jojohoch's avatar jojohoch
Browse files

[player] Remove hiding of all highlights when new highlight is activated

parent 29449fb4
No related branches found
No related tags found
No related merge requests found
......@@ -35,7 +35,7 @@ export class TextMarkingSupport {
startTextSelection(pointerDown: PointerEvent, elementComponent: TextComponent): void {
this.isMarkingBarOpen = false;
this.anchorService.reset();
this.anchorService.hideAllAnchors();
this.nativeEventService.pointerUp
.pipe(takeUntil(this.ngUnsubscribe), first())
.subscribe((pointerUp: PointerEvent) => {
......
......@@ -16,7 +16,6 @@ export class AnchorService {
}
showAnchor(anchorId: string): void {
this.reset();
this.addAnchor(anchorId);
}
......@@ -72,6 +71,10 @@ export class AnchorService {
}
}
hideAllAnchors(): void {
this.reset();
}
reset(): void {
Object.keys(this.activeAnchors).forEach(anchorId => this.removeAnchor(anchorId));
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment