splitter icon indicating copy to clipboard operation
splitter copied to clipboard

Doesn't work when moving over iframe

Open ilevd opened this issue 8 years ago • 1 comments

Probably you should add "pointer-events: none." to panels on mouse down and remove it on mouse up

ilevd avatar Sep 26 '17 06:09 ilevd

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;
};

raffi-ismail avatar Jul 04 '19 10:07 raffi-ismail