How to decrease the sensitivity of Iscroll5?

Asked

Viewed 22 times

0

I’m using Plguin Iscroll to scroll through to show a list on an IOS device.

I’ve been looking at the site where I downloaded the plugin (here), but found no information about decreasing/increasing scroll sensitivity.

Is there any instruction that does?

UPDATE

Inicialização do IScroll

        var wrapper = document.getElementById('treelist');
        myScroll = new IScroll(wrapper, {
            scrollX : false,
            scrollY : true,
            scrollbars : false,
            interactiveScrollbars : true,
            mouseWheel : true,
            hScrollbar : false,
            vScrollbar : true,
            useTransition : false,
            snap : 'li',
            tap: true,
            click: true,
            mouseWheelSpeed: 1,

            indicators : {
                el : '#scroller',
                fade : false,
                ignoreBoundaries : false,
                interactive : false,
                listenX : false,
                listenY : true,
                resize : false,
                shrink : false,
                speedRatioX : 0,
                speedRatioY : 0,
                checkDOMChanges: true,
            },

        });

1 answer

-1

In the same site there is the part of advanced commands that can be seen here: http://iscrolljs.com/#Advanced-options

I believe what you seek is:

options.mouseWheelSpeed
Modifica a velocidade do scroll do mouse.
Valor padrão: 20

If you want to change the acceleration/stop time of the movement is with the options.deceleration.

  • I’ll try, but I don’t think so, because I’m not using the mouse wheel

  • Still scroll, independent of mouse/mouse/mouse/finger :D

  • I don’t think it worked, at least I’ve experienced mouseWheelSpeed: 1 and mouseWheelSpeed: 100 to see the difference, and I didn’t notice anything. It may have few elements to go through to notice the difference?

  • How are you declaring these commands?

  • I upadte the question, I added the javascript code that initializes iscroll

Browser other questions tagged

You are not signed in. Login or sign up in order to post.