How to scroll using the scroll bar by partially displaying the scroll bar on the smartphone.steemCreated with Sketch.

in #programming7 years ago

Write it as a memorandum.

For example use this.
http://manos.malihu.gr/jquery-custom-content-scroller/

<script>
(function($){
    $(window).on("load",function(){
        $(".scroll_content").mCustomScrollbar();
    });
    $('.mCSB_1_scrollbar').on('touchmove', function(){
        $(window).on('touchmove.noScroll', function (e) {
            e.preventDefault();
        });
    });
    $('.mCSB_1_scrollbar').on('touchend', function(){
        $(window).off('.noScroll');
    });
})(jQuery);
</script>

By writing like this, can use the scroll bar on smartphone.
I spent a huge amount of time to get to this.
I am stupid, so I write it down.

Coin Marketplace

STEEM 0.18
TRX 0.13
JST 0.028
BTC 58080.30
ETH 3102.16
USDT 1.00
SBD 2.40