scotch-io / scotch-panels

jQuery Off Canvas Menus and Panels Plugin
600 stars 99 forks source link

Issue with olark chat not showing when using scotch-panels #24

Closed mikebianchini closed 9 years ago

mikebianchini commented 9 years ago

We use olark chat for customer support and after I added scotch-panels it stopped showing olark on our page. Site is www.municibeta.com

Hoping you could help us trouble shoot.

Olark code:

mikebianchini commented 9 years ago

If I remove this code from the scotchPenels.js it works:

$(function() { var scotchPanel = $('#scotch-panel').scotchPanel({ containerSelector: 'body', direction: 'right', duration: 300, transition: 'ease-in-out', clickSelector: '.toggle-panel', distanceX: '55%', enableEscapeKey: true });

$(window).resize(function() {
    if ($(window).width() >= 768 && $('.scotch-panel-canvas').hasClass('scotch-is-showing')) {
        scotchPanel.close();
    }
});

});

mikebianchini commented 9 years ago

Fixed it.