Skip to content

Incompatible with CSS Scroll Snap #1698

Open
@okaybenji

Description

@okaybenji

Problem:

Without CSS Scroll Snap enabled, Sortable items can be dragged to the edge of the screen to trigger scrolling in that direction. Once CSS Scroll Snap is enabled, this no longer works.

In the JSFiddle (which uses Vue.Draggable), try dragging item A to the right. You will see that you can pick up item A and drag it, but dragging to the right edge of the screen does nothing.

Now, comment out line 11 in the CSS (scroll-snap-align: center;), save, reload, and try again. Dragging A to the right edge of the screen triggers scrolling horizontally again.

JSBin/JSFiddle demonstrating the problem:

https://jsfiddle.net/okaybenji/tfam34er/

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions