Skip to content

Scroll doesn't work until the mouse is moved #133

@alvarotrigo

Description

@alvarotrigo

I'm creating slimScroll structure dynamically as well as calling the initialization.

I've been able to reproduce the problem in a jsfiddle with a timeout so you can have time to place the mouse over the scrolling div, and without moving it at all, try to scroll. This will show the bug. Slimscroll won't scroll unless you move the mouse.

http://jsfiddle.net/u9P87/9/

Why there's a mousemove event inside the mousedown here?

    bar.bind("mousedown", function(e) {
            var $doc = $(document);
            isDragg = true;
            t = parseFloat(bar.css('top'));
            pageY = e.pageY;

            //why is this here?
            $doc.bind("mousemove.slimscroll", function(e){

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions