ngx-contextmenu
                                
                                 ngx-contextmenu copied to clipboard
                                
                                    ngx-contextmenu copied to clipboard
                            
                            
                            
                        Context menu scroll event binding not working when adding context menu to div
Hello, We are using ngx-contextMenu in div and we have bind scroll event of div to close then context menu, it is not working properly.
I have almost the same problem, but with window.resize-event. The native context menu blocks the function of resizing, and there is a reason why developers of modern browsers do this: the context menu can move outside the page.
This is probably not the best solution, but I'm usign this pattern to escape this issue:
merge(fromEvent(window, 'resize'), fromEvent(elemContainer, 'scroll')) .pipe(takeUntil(contextMenu.close)) .subscribe(() => this.ctxMenuService.closeAllContextMenus(null))
Hello, @VolkovVlad We tried this solution but it is not working. Do you have any other solution ?