yansern / vue-multipane

Resizable split panes for Vue.js.
https://yansern.github.io/vue-multipane/
Other
588 stars 125 forks source link

Fixes to allow stacked panes #9

Closed alarie closed 2 years ago

alarie commented 6 years ago

This PR should allow stacking panes inside of each other.

Therefor it's necessary, that we ignore mousedown events on multipane-resizers if those resizers are not immediate children of the event-handling multipane component. The easiest way to do this is to check the direct parent of the event target. If that element is not the current multipane component's $el, then we just abort further event handling.