question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

feat(slides): Swiper 5

See original GitHub issue

Bug Report

Ionic version: [x] 4.x

Current behavior: On a non-mobile device (with mouse), there is no way to enable horizontal scrolling (css mode) of the trackpad to move between slides. You always have to click and drag to change pages.

Expected behavior: On non-mobile devices, you should be able to change pages of the swiper component with your mouse or keyboard.

Steps to reproduce: Setting these slide options has no effect:

    slidesPerView: 5,
    spaceBetween: 12,
    loop: false,
    cssMode: true,
    autoplay: {
      delay: 5000,
    },
    mousewheel: true,
    keyboard: true,

Related code: Please see: https://swiperjs.com/demos/145-css-mode.html https://github.com/nolimits4web/Swiper/blob/master/demos/145-css-mode.html

Ionic info:

Ionic:

   Ionic CLI                     : 5.2.5 (C:\Users\dylan\AppData\Roaming\npm\node_modules\ionic)
   Ionic Framework               : @ionic/angular 4.11.1
   @angular-devkit/build-angular : 0.803.10
   @angular-devkit/schematics    : 8.3.10
   @angular/cli                  : 8.3.10
   @ionic/angular-toolkit        : 2.0.0

Cordova:

   Cordova CLI       : 8.1.2 (cordova-lib@8.1.1)
   Cordova Platforms : android 7.1.4
   Cordova Plugins   : not available

Utility:

   cordova-res : 0.5.2
   native-run  : 0.2.7

System:

   NodeJS : v12.8.1 (C:\Program Files\nodejs\node.exe)
   npm    : 6.11.2
   OS     : Windows 10

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
samyakjaincommented, Mar 30, 2020

Has this been fixed? I am also looking for same functionality. I want to swipe using trackpad or keyboard on laptop.

0reactions
ionitron-bot[bot]commented, Apr 29, 2020

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

Read more comments on GitHub >

github_iconTop Results From Across the Web

feat(slides): Swiper 5 · Issue #19679 · ionic-team ... - GitHub
Current behavior: On a non-mobile device (with mouse), there is no way to enable horizontal scrolling (css mode) of the trackpad to move...
Read more >
Swiper - The Most Modern Mobile Touch Slider
Swiper is the most modern free mobile touch slider with hardware accelerated transitions and amazing native behavior.
Read more >
Tutorial for Official SwiperJs React Carousel (Swiper Js How ...
After many years of being tied to 3rd party react versions of SwiperJS the official team has now created its own version of...
Read more >
ViteJS And ReactJS Dynamic Slides Using SwiperJS - YouTube
ReactJS Dynamic Slides Using SwiperJS#react #swiperjs #vitejsIonic has depreciated IonSlides in the v6 release and recommends using the ...
Read more >
Responsive and Flexible Mobile Touch Slider - Swiper
Swiper is a powerful javascript library to implement responsive, accessible, flexible, ... 5, < div class = "swiper-slide" >Slide 3</ div > ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found