Recently diving into Angular, I'm working on a vertically split panel with a "drag handle" that allows users to adjust the height of the top and bottom tree panels. While I've managed to implement a three-stage toggle, I'm struggling to get the dragging functionality to work smoothly using mouse events. I prefer not to use renderer or HostListener approach, nor the ng-split directive - rather, a custom function/method would be ideal for this task. Would appreciate if someone could take a look at my code and provide some assistance. Here's what I have accomplished so far.