Comments (10)
@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.
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.
@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:
from swiftuipager.
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.
here is another demo with a visible gesture.
from swiftuipager.
@fermoya please take a look at my pull request.
I'm not able to reproduce the issue with this new change.
from swiftuipager.
Same problem here!
from swiftuipager.
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.
Thank you. I am also facing the same issue
from swiftuipager.
Thanks for the fix! Great work
from swiftuipager.
Related Issues (20)
- [BUG] Weird moving transparent Image appearing when scrolling fast.
- [BUG] tvOS NavigationLink not work HOT 1
- [FEAT] Hide scroll indicator on watchOS
- [BUG] To many pageView request
- [BUG] The element inside of Pager is hidden when when it goes beyond the screen border
- [FEAT] Page Indicator dots (`PageTabViewStyle.IndexDisplayMode`) at the bottom according page count HOT 2
- Pager not shown when using inside ScrollView HOT 3
- Pager Size according to the inner view
- [BUG] App Crashes detected HOT 2
- [BUG] Cant swipe, the page goes back to first
- [BUG] Item's with different size does not work as expected for swipeDirection vertical
- Auto Scroll horizontally one item at a time when user is not interacting
- [FEAT] Ability to not clip children HOT 1
- Multiple Page nesting causes sliding bug
- [FEAT] .dragBackwardsOnly() ? HOT 1
- [BUG] macOS 14 displays focusRing HOT 2
- [FEAT] The anchor point for interactive scaling
- [FEAT] Interactive Blur Effect
- [BUG] Pager scrolls in the opposite direction in RLT languages
- [FEAT] Do not deallocate page when scrolling to next page
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from swiftuipager.