splitter
splitter copied to clipboard
Doesn't work when moving over iframe
Probably you should add "pointer-events: none." to panels on mouse down and remove it on mouse up
In case anyone is facing the same issue:
In css file add:
.panel-updating iframe {
pointer-events: none !important;
}
in js in the splitme init prototype function, replace the splitme.up function:
up:function(event){
if(splitMe.currentElement) {
splitMe.currentElement.splitter.className = splitMe.currentElement.vertical ? 'divider_vertical' : 'divider_horizontal';
splitMe.currentElement.classList.remove('panel-updating');
splitMe.currentElement = null;
}
},
and divider.onmousedown with:
divider.onmousedown = function(event){
elem.splitter.className += ' dragged';
elem.classList.add('panel-updating');
splitMe.currentElement = elem;
if(event)event.preventDefault();
return false;
};