pull-element
pull-element copied to clipboard
pullLeft does not work when child element of target is wider then target
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!
Thanks for the feedback. It is very useful.