Skip to content

pullLeft does not work when child element of target is wider then target #5

@sjbuysse

Description

@sjbuysse

Hi,

There are situations in which a target element can have child elements that are wider than the target itself. One situation that I encountered was when my target had a child component that used the bootstrap row class, but I hadn't wrapped the row in a div with the container class.

When the child element is wider than the parent, the target not being able to pull to the left.

@Lucifier129 this is because isScrollRightEnd is set to false in getScrollEndingInfo

This doesn't necessarily have to be fixed (you can solve it by making sure that your target element does not have a child that is wider then the target), just wanted to put out this issue so that people don't struggle with this in the future.

Loving the library @Lucifier129 , thanks!

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