Giter Site home page Giter Site logo

Comments (10)

fermoya avatar fermoya commented on May 17, 2024 2

@mohammad-rahchamani , I'm seeing it now and I can reproduce it, thanks. As far as I can see, the DragGesture.onEnded callback isn't called, ScrollView cancels the gesture. I've found a related issue, you can find it here. I can't really follow the same approach as GestureState gets reset before onEnded is called, so I wouldn't be able to animate the scrolling to the next page.

I'll think about possible solutions, any thought on your side are more than welcome

from swiftuipager.

fermoya avatar fermoya commented on May 17, 2024 2

I just released v1.9.0-beta.4 with a fix for this issue. You'll see that I'm ignoring swipes that aren't along the X-Axis ± 30 degrees and not starting the pagination if the total translation on the X-Axis isn't larger than on the Y-Axis

Hope it works.

from swiftuipager.

fermoya avatar fermoya commented on May 17, 2024

@mohammad-rahchamani , I'm running your code on both Xcode 11.5 and Xcode 12 Beta 2 and I don't see this issue you mention. See iPhone 8 - 13.5 on the left and iPhone 8 - 14.0 on the right:
movie

movie.mov.zip

from swiftuipager.

mohammad-rahchamani avatar mohammad-rahchamani commented on May 17, 2024

Thank you for your fast response.
You have to drag diagonally for this to happen.
I'm trying to capture another demo with my pointer for more clarification.

from swiftuipager.

mohammad-rahchamani avatar mohammad-rahchamani commented on May 17, 2024

here is another demo with a visible gesture.

demo1

from swiftuipager.

mohammad-rahchamani avatar mohammad-rahchamani commented on May 17, 2024

@fermoya please take a look at my pull request.
I'm not able to reproduce the issue with this new change.

from swiftuipager.

carlosrc avatar carlosrc commented on May 17, 2024

Same problem here!

from swiftuipager.

fermoya avatar fermoya commented on May 17, 2024

I’m working on it. I checked the PR but the issue kept happening.

I wanted to merge something first to avoid conflicts, I’ll be working on this promptly

from swiftuipager.

skt216 avatar skt216 commented on May 17, 2024

Thank you. I am also facing the same issue

from swiftuipager.

carlosrc avatar carlosrc commented on May 17, 2024

Thanks for the fix! Great work

from swiftuipager.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.