+ // FIXME: bug flicking menu - disable it for now
+ /*
+ // Automatically expand sidebar on mouse over
+ this._mouseEnterStream.flatMap(e => {
+ return Observable
+ .of(e)
+ .delay(100)
+ .takeUntil(this._mouseLeaveStream);
+ }).subscribe(e => {
+ if (this.sidebarPinned || !this.sidebarCompact) {
+ return;
+ }
+ // this._mouseLeaveStream.emit(null);
+ this.sidebarService.toggle(false, 'menu-sidebar');
+ });
+
+ // Automatically collapse sidebar on mouse leave
+ this._mouseLeaveStream.flatMap(e => {
+ return Observable
+ .of(e)
+ .delay(100)
+ .takeUntil(this._mouseEnterStream);
+ }).subscribe(e => {
+ if (this.sidebarPinned || this.sidebarCompact) {
+ return;
+ }
+ // this._mouseEnterStream.emit(null);
+ this.sidebarService.toggle(true, 'menu-sidebar');
+ });
+ */