function indicator(options){
        if(settings.indicator){
            let indicators = {
                    ...{
                        "values": [
                            obj.isScrollUp,
                            obj.isScrollDown,
                            obj.isScrollAtTop,
                            obj.isScrollAtMiddle,
                            obj.isScrollAtBottom
                        ],
                        "classes": [
                            settings.scrollUpClass,
                            settings.scrollDownClass,
                            settings.scrollAtTopClass,
                            settings.scrollAtMiddleClass,
                            settings.scrollAtBottomClass
                        ]
                    }, ...options
                },
                i = 0,
                l = indicators.values.length;

            for(i; i < l; i++){
                if(indicators.values[i]){
                    settings.indicatorElement.classList.add(indicators.classes[i]);
                }else{
                    settings.indicatorElement.classList.remove(indicators.classes[i]);
                }
            }
        }
    }
// Indicator: add class to indicate the scrolling status
add class to indicate the scrolling status
add class to indicate the scrolling status
function indicator(options){
        if(settings.indicator){
            let indicators = {
                    ...{
                        "values": [
                            obj.isScrollUp,
                            obj.isScrollDown,
                            obj.isScrollAtTop,
                            obj.isScrollAtMiddle,
                            obj.isScrollAtBottom
                        ],
                        "classes": [
                            settings.scrollUpClass,
                            settings.scrollDownClass,
                            settings.scrollAtTopClass,
                            settings.scrollAtMiddleClass,
                            settings.scrollAtBottomClass
                        ]
                    }, ...options
                },
                i = 0,
                l = indicators.values.length;
            for(i; i < l; i++){
                if(indicators.values[i]){
                    settings.indicatorElement.classList.add(indicators.classes[i]);
                }else{
                    settings.indicatorElement.classList.remove(indicators.classes[i]);
                }
            }
        }
    }
function indicator ( options ) { if ( settings . indicator ) { let indicators = { ... { "values" : [ obj . isScrollUp , obj . isScrollDown , obj . isScrollAtTop , obj . isScrollAtMiddle , obj . isScrollAtBottom ] , "classes" : [ settings . scrollUpClass , settings . scrollDownClass , settings . scrollAtTopClass , settings . scrollAtMiddleClass , settings . scrollAtBottomClass ] } , ... options } , i = 0 , l = indicators . values . length ; for ( i ; i < l ; i ++ ) { if ( indicators . values [ i ] ) { settings . indicatorElement . classList . add ( indicators . classes [ i ] ) ; } else { settings . indicatorElement . classList . remove ( indicators . classes [ i ] ) ; } } } }
Indicator: add class to indicate the scrolling status
Indicator : add class to indicate the scrolling status