Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Toast container is jumping when swiping #276

Open
vlanemcev opened this issue Aug 27, 2024 · 1 comment
Open

[BUG] Toast container is jumping when swiping #276

vlanemcev opened this issue Aug 27, 2024 · 1 comment

Comments

@vlanemcev
Copy link

Prerequisites
Please answer the following questions for yourself before submitting an issue.

  • [Yes] I am running the latest version
  • [Yes] I checked the documentation and found no answer
  • [Yes] I checked to make sure that this issue has not already been filed

Describe the bug
When I try to swipe toast in direction that I choose - the Toast come back in the initial position and start animation from it.
Check attached video.

To Reproduce
Here's my config that I use in the screen:

  useEffect(() => {
    notify("error", {
      params: {
        title: "Test error message",
      },
      config: {
        duration: 1500,
        animationConfig: MoveUp,
        notificationPosition: "top",
        gestureConfig: {
          direction: "y",
          activationDistances: 30,
        },
      },
    });
  }, [notify]);

Expected behavior
Toast will not jump in initial position and continue it's animation from the end of gesture.

Screenshots

Simulator.Screen.Recording.-.iPhone.15.Pro.-.2024-08-27.at.17.25.00.mp4

Smartphone:

  • Simulator: IPhone 15 Pro
@vlanemcev vlanemcev changed the title [BUG] Toast container jumping when swiping [BUG] Toast container is jumping when swiping Aug 27, 2024
@PdoubleU
Copy link
Collaborator

@vlanemcev thanks for opening the issue, this is something should be improved. Feel free to open PR with the fix ⚙️. I'd be happy to review and merge it ❤️

@PdoubleU PdoubleU reopened this Oct 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@vlanemcev @PdoubleU and others