Comments (5)
Hi
Thank you for the report - can you give me an example where it fails - steps to reproduce so I can verify the issue? Maybe using the configuration page of Swiffyslider.com
Would this change (changing from '>=' to '>' not do the same and in a more clean way?
if (container.scrollLeft > (container.scrollWidth - container.offsetWidth) && next && !noloop)
BR Nicolai
from swiffy-slider.
Hi Nicolai, actually no, I just tried your recommendation and it does not solve the problem.
To replicate the issue, please follow these steps:
- Using a mobile phone, navigate here: https://swiffyslider.com/examples/
- Go to the "Articles" example.
- Tap on the right arrow, as shown in the following image, to scroll through the slides until you reach the last slide.
- After reaching the last slide, you will notice that nothing happens when you tap on the right arrow.
In contrast, if you perform the same action on a desktop device, clicking on the arrow of the last item will automatically take you to the beginning, which is the expected behavior by the user.
Best,
hlias
from swiffy-slider.
I cannot reproduce that on my devices - it scrolls back to start on last slide when clicking the right navigation arrow.
I can see from your screenshot that it is not a mobile device as that example would have the arrows on top of the slides on mobile.
What device and browser are you using?
from swiffy-slider.
Yes that was actually a screenshot from a desktop browser. My device is a Xiaomi Redmi Note 11 Pro (it uses Android 12) and the browser was Google Chrome. I now gave it a try with Opera as well (mobile browser) and with Google Chrome on another Xiaomi Device (Mi 10T Lite, Android 11). Same issue in all cases...
from swiffy-slider.
Ok - seems to be Android only issue. Cannot reproduce in any browsers on other devices... But got it reproduced on an Android.
I think I will not change this as it will probably just cause problems in other devices where it works fine now - and then they will calculate wrong.
Also this issue is related to mobile devices where sliding with touch in most cases is the primary navigation path.
from swiffy-slider.
Related Issues (20)
- automatic and responsive indicators HOT 3
- Responsiveness for tablet(medium devices) HOT 1
- Move by more than one slide? HOT 1
- Issue with extension file HOT 4
- Adding animation to text content HOT 3
- Looping not working HOT 13
- Typescript and framework integration HOT 4
- Infinity scroll HOT 2
- Product Gallery with vertical Thumbnails and Zoom effect HOT 3
- Unminimized distribution lacks vendor specific selector properties HOT 1
- Div Wrapper under slider-container HOT 1
- slider-item-show HOT 4
- Lazy Loading Images HOT 1
- A few beginner questions HOT 3
- Dragging an dClick HOT 7
- How to import extensions as module? HOT 4
- Button next and previous not working in RTL HOT 15
- indicators on mobile device fail on Lighthouse check HOT 3
- More than 2 items on mobile HOT 1
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 swiffy-slider.