Skip to content

[BUG] Draggables are restricted to viewport boundaries with container #1157

@andrilla-francis

Description

@andrilla-francis

Description

Draggables are restricted to viewport boundaries when a container is set, even when the container exceeds the viewport.

Minimal reproduction demo of the bug

Anime.js Draggable on CodePen

Detailed steps to reproduce the issue

  1. In HTML, create two elements: A fixed element that exceeds the viewport on at least one side (the "Container") and a small element (the "Draggable").
  2. In JavaScript, run createDraggable() setting the Draggable as the target and the Container as the container.
  3. Click and drag the Draggable outside of the viewport wherever the Container exceeds the viewport. The Draggable will be stopped by the viewport, even though the Container continues past the viewport.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions