diff --git a/src/util/directives/FixedMouseContextualContainerDirective.directive.ts b/src/util/directives/FixedMouseContextualContainerDirective.directive.ts
index 6787cd2579df99d410c3702d5f5350dac672da5d..75cd846e5660f856e67050863f031cfd980fcd65 100644
--- a/src/util/directives/FixedMouseContextualContainerDirective.directive.ts
+++ b/src/util/directives/FixedMouseContextualContainerDirective.directive.ts
@@ -1,11 +1,10 @@
 import { Directive, Input, HostBinding, HostListener, ElementRef, OnChanges, Output, EventEmitter } from "@angular/core";
-import { ConsoleReporter } from "jasmine";
 
 @Directive({
   selector: '[fixedMouseContextualContainerDirective]'
 })
 
-export class FixedMouseContextualContainerDirective implements OnChanges{
+export class FixedMouseContextualContainerDirective {
 
   private defaultPos: [number, number] = [-1e3, -1e3]
   public isShown: boolean = false
@@ -25,10 +24,6 @@ export class FixedMouseContextualContainerDirective implements OnChanges{
     
   }
 
-  ngOnChanges(changes){
-    console.log({changes})
-  }
-
   public show(){
     this.transform = `translate(${this.mousePos.map(v => v.toString() + 'px').join(', ')})`
     this.styleDisplay = 'block'
@@ -51,16 +46,12 @@ export class FixedMouseContextualContainerDirective implements OnChanges{
 
   @HostListener('document:click', ['$event'])
   documentClick(event: MouseEvent){
-    if (event.which !== 3) {
-      console.log(event.target);
-      console.log(event.which);
+    if (event.button !== 2) {
       if (this.styleDisplay === 'none')
         return
       if (this.el.nativeElement.contains(event.target))
         return
-
       this.hide()
     }
   }
-
 }
\ No newline at end of file