0

I'm using one of the most popular jquery custom scroll plugin: Malihu

It has an option, that helps to determine if element is in scrollable parents container viewport (lool at Plugin-specific jQuery expression). On plugin's demo page it works more than fine, but not in my own project. And i can't find the answer anywhere.

When i try using this option in my project, i always get an error: "Uncaught Error: Syntax error, unrecognized expression: unsupported pseudo: mcsInView"

Jquery: V 3.3.1 Malihu: V 3.1.5

Jquery code example:

$('.route_wrapper .info')
    .mCustomScrollbar({
        scrollButtons: {
            enable: false
        },
        scrollInertia: 0,
        callbacks:{
            onScroll:function(){
                if ($('#vid3').is(':mcsInView')) {
                    console.log('In viewport')
                }
            }
        }
    });

0 Answers0