From 1f48be0ae6c863e3db7784d58641c24be6842248 Mon Sep 17 00:00:00 2001
From: Xiao Gui <xgui3783@gmail.com>
Date: Fri, 26 Oct 2018 15:50:18 +0200
Subject: [PATCH] chore: remove throttletime for updating colour map.

Should have been debounce, and the behavious is weird
---
 src/ui/nehubaContainer/nehubaViewer/nehubaViewer.component.ts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/ui/nehubaContainer/nehubaViewer/nehubaViewer.component.ts b/src/ui/nehubaContainer/nehubaViewer/nehubaViewer.component.ts
index b517ac97f..f3558108e 100644
--- a/src/ui/nehubaContainer/nehubaViewer/nehubaViewer.component.ts
+++ b/src/ui/nehubaContainer/nehubaViewer/nehubaViewer.component.ts
@@ -712,7 +712,7 @@ export class NehubaViewerUnit implements AfterViewInit,OnDestroy{
     if(this._s1$)this._s1$.unsubscribe()
     this._s1$ = this.nehubaViewer.getShownSegmentsObservable({
       name : this.parcellationId
-    }).throttleTime(100).subscribe(arrayIdx=>this.updateColorMap(arrayIdx))
+    }).subscribe(arrayIdx=>this.updateColorMap(arrayIdx))
   }
 
   private getRgb(labelIndex:number,rgb?:number[]):{red:number,green:number,blue:number}{
-- 
GitLab