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.

After applying brake point The slideshow works weird.

See original GitHub issue

I’m working in the next ssr environment.

I absolutely need this ㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡ When width is over 769 [pagination tpye: fraction], When it is less than 768 I applied [tpye: bullets] ㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡ When changing options due to breakpoints

  • Cannot slide by touch
  • 768<width when switching When sliding, the fraction page number is fixed and looping is possible only with the prev button.

There is nothing similar on Stack Overflow.

I tested it with react, but the same problem occurred please check.

This is a (multiple allowed):

  • bug

  • Swiper Version: 6.1.2

  • Platform/Target and Browser Versions: macOS, Chrome

What you did

  <Swiper
    slidesPerView={1}
    loop
    navigation
    pagination={{
      type: "bullets",
      renderBullet: (index, className) => {
        return `<div class="${className}">${index}</div>`;
      },
      clickable: true,
    }}
    breakpoints={{
      769: {
        slidesPerView: 3,
        slidesPerGroup: 3,
        pagination: { type: "fraction", clickable: true },
      },
    }}
  >

Expected Behavior

When width is over 769 pagination type: fraction, slidesPerView: 3, slidesPerGroup: 3,

When it is less than 768 pagination type: bullets, slidesPerView:3

Actual Behavior

The view renders normally.

The function malfunctions when changing the option to a breakpoint.

Does not slide with touch and drag.

When changing the 768->769 width value, the loop and slide move only when the previous button is pressed.

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
nolimits4webcommented, Sep 1, 2020

Then, is it not possible to change the pagination type according to the width value?

No, it is not supported

1reaction
nolimits4webcommented, Sep 1, 2020

Breakpoints can’t work with Pagination type and behavior

breakpoints

Allows to set different parameter for different responsive breakpoints (screen sizes). Not all parameters can be changed in breakpoints, only those which are not required different layout and logic, like slidesPerView, slidesPerGroup, spaceBetween, slidesPerColumn.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why does a car start skidding when the brakes are applied?
Leaking fluids will usely give the opposite problem, lack of braking, but dirt or sand added in, could cause problems both wsys, more...
Read more >
Soft Brakes? Pedal to the Floor? 5 Common Car ... - YouTube
For More Info visit us at: http://1aau.to/h/cpn/Does your car or truck have soft, squishy brakes ? Does the pedal drop to the floor...
Read more >
Grinding Noise When Braking? What's That Noise in My Car ...
Part DetailsFront Brake Rotor Diameter: 12.99 in. (330mm) Kit Includes: (1) Front Ceramic Brake Pad Set with Contact Point Grease & Hardware ...
Read more >
What Happens When You Slam on the Brakes
You may feel a thump thump when driving or smell burnt rubber if you slam on your brakes hard enough to "flat spot"...
Read more >
Fixing a problem with video files saved from PowerPoint
The solution: The framerate needs to be adjusted. This is how we recommend doing it: Download the software “Handbrake” – it's free, open...
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