Skip to content
This repository was archived by the owner on May 16, 2026. It is now read-only.
This repository was archived by the owner on May 16, 2026. It is now read-only.

Detect when user is panning past the bounds of the zoom container #89

Description

@sgrund14

Hello!

How would you recommend detecting when an image is zoomed in and the user pans all the way to the bounds of the zoom container?

I'm using this in a carousel, and trying to achieve this effect:

  • When zoomed on an image, and the user pans to the right/left to the very edge of the container
  • Once the edge is hit, if you continue to drag in the direction of the edge, it navigates to the next image in the carousel
  • If you navigate in the opposite direction, it allows the drag as normal

Seems like this would require:

  • Knowing when you are at the edge of a zoom container
  • Being able to prevent drag in a certain direction and defer it to the wrapping carousel

Any pointers appreciated!

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