antoniandre / splitpanes

A Vue 3 (and 2) reliable, simple and touch-ready panes splitter / resizer.
https://antoniandre.github.io/splitpanes
MIT License
1.91k stars 169 forks source link

No resize event when toggling horizontal flag #79

Open petersutter opened 4 years ago

petersutter commented 4 years ago

Currently, when toggling the horizontal flag no resize event is fired, but the sizes of the panes may change.

antoniandre commented 4 years ago

Hi @petersutter,

You raise an interesting point. When changing the direction, the width and height are flipped only, no resizing is done from Splitpanes at this stage and that's why no resized event is fired. Also, usually if the user changes the direction, the change is triggered from outside Splitpanes so you know that you are initiating a change of size. But I agree it could make sense to trigger a resized event as well.

Do you mind to let me know your use case and why you need a resized event fired? Cheers.

petersutter commented 4 years ago

Hi @antoniandre , Yes the change is triggered from outside (in my case drag & drop) and I also added handling for it, but I wondered why no resized event was fired. So it would be nice to have, but not mandatory of course.

Regarding my use case: I'm working on a splitpane feature for our web terminals with drag and drop support, similar to iTerm2: 2020-02-17_14-54-55 (1)