Skip to content

debug this line, bug on vertical mode #76

@Ayrinsoft

Description

@Ayrinsoft

// calculate the distance
//_dist = options.width * _page.length + ( options.margin * _page.length );

if (options.orientation === "horizontal") {
_dist = options.width * _page.length + (options.margin * _page.length);
_animOpts = { scrollLeft: "+=" + _dist };
} else {
_dist = options.height * _page.length + (options.margin * _page.length);
_animOpts = { scrollTop: "+=" + _dist };
}

on vertical mode you set options.width, replace with height ;)

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