akserg / ng2-dnd

Angular 2 Drag-and-Drop without dependencies

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

During sort top element from top to bottom, sortable container is scrolling down unexpectedly

ArekSliwa opened this issue · comments

  • I'm submitting a ...
    [X ] bug report
    [ ] feature request
    [ ] question about the decisions made in the repository

  • Do you want to request a feature or report a bug?
    bug

  • What is the current behavior?
    When I try to sort element inside the container which is on top from top to bottom and the element is cutted from the top (even 1px is enough): box start scrolling unexpectedly to bottom during dragging element to down.
    If the whole element is visible on a screen there is no issue.

copy url and open link in new tab
https://vimeo.com/275229242

  • What is the expected behavior?
    just behave like when the whole element is displayed

  • Please tell us about your environment:

  • Angular version: 5.2.11
  • Browser: seems chrome bug
    -library version: 5.0.2
  • Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, gitter, etc)

seems the bug appears also when element is dragged from bottom to top

Looking for its solution since long.

very long... seems luckily we have now 2 alternatives and leave this lib. https://reppners.github.io/ngx-drag-drop/ or using material angular cdk for dnd :)