[cXF] Enhanced Featured Content Carousel

[cXF] Enhanced Featured Content Carousel [Paid] 1.4.2

No permission to buy (€25.00)
For the next update could this please be addressed? Not only have I found it annoying myself, I had 2 users complain as they are used to scrolling down from the homepage with their thumb. "I can't scroll past this new image thing on my phone!"

When a user tries to scroll vertically down the page on a phone and their finger happens to land on one of the carousel images, the page does not move.

It seems the carousel's touch event listeners (likely touchstart/touchmove) or CSS touch-action properties are intercepting vertical swipes instead of allowing them to pass through to the browser's native page scroll.

Could you look into adjusting the touch handling so that horizontal swipes control the carousel, while vertical swipes still allow the page to scroll naturally? (For example, ensuring touch-action: pan-y; is applied or that preventDefault() isn't firing on vertical touch movements).

Thanks!

Also, if the header is large (or phone is small) and the carousel is under it with no space under that to scroll, you have to go above the carousel to scroll down and sometimes end up clicking the logo.
 
Last edited:
For the next update could this please be addressed? Not only have I found it annoying myself, I had 2 users complain as they are used to scrolling down from the homepage with their thumb. "I can't scroll past this new image thing on my phone!"

When a user tries to scroll vertically down the page on a phone and their finger happens to land on one of the carousel images, the page does not move.

It seems the carousel's touch event listeners (likely touchstart/touchmove) or CSS touch-action properties are intercepting vertical swipes instead of allowing them to pass through to the browser's native page scroll.

Could you look into adjusting the touch handling so that horizontal swipes control the carousel, while vertical swipes still allow the page to scroll naturally? (For example, ensuring touch-action: pan-y; is applied or that preventDefault() isn't firing on vertical touch movements).

Thanks!

Also, if the header is large (or phone is small) and the carousel is under it with no space under that to scroll, you have to go above the carousel to scroll down and sometimes end up clicking the logo.
That is happening also with the default XF carousel. I have the same "issue" on Mac and iPhone and this add-on is using the XF default carousel.
 
I used Claude and it pointed to a bug.

This fixes it in extra.less:
Code:
.carousel-container.f-carousel__slide {
    overflow: hidden !important;
    overscroll-behavior: auto !important;
}

.carousel-container.f-carousel__slide .carousel-item,
.carousel-container.f-carousel__slide .contentRow {
    touch-action: pan-y;
}

This fixes for mobile and web as well when using a mouse wheel.

Claude said:
It’s also worth telling the add-on author about the overflow: hidden auto on the slides. That’s the real cause, and they can fix it at the source so nobody else hits it.

I asked Claude to compose a post for here:

Claude said:
Hi, I’m reporting a mobile scrolling issue with the carousel on XenForo 2.3.

Problem: On a phone, touching a carousel image and swiping vertically doesn’t scroll the page. Horizontal swiping works fine.

What I found: The carousel uses Fancyapps (f-carousel). Each slide (li.carousel-container.f-carousel__slide) has a computed overflow of hidden auto, and touch-action is auto on all ancestors. I’m not sure whether that comes from your add-on, XenForo’s core carousel CSS, or my style.

Workaround that fixed it for me (added to extra.less):

CSS:
.carousel-container.f-carousel__slide {
    overflow: hidden !important;
    overscroll-behavior: auto !important;
}

.carousel-container.f-carousel__slide .carousel-item,
.carousel-container.f-carousel__slide .contentRow {
    touch-action: pan-y;
}

The overflow: hidden rule on its own wasn’t enough, so I can’t say which part is essential.
 
Last edited:
When I feature a thread, I add an image, it usually has text. I find when adding to the post and hiding with 0x0 dimensions, it looks great in the carousel, but when uploading as a featured image, it is more zoomed in/cropped—text cut off, and I have to edit the image, or, use the post image. Featured image is the better option so hoping it can look the same. Also, retaining true aspect ratio on a phone would be important as well. But thanks for a great add-on. One of my faves.
I would think this should take care of it. I would think none would display exactly like a "first post" pulled from the thread, but alas, no. I tried all 3 settings on 2 different threads with featured images, uploading new each time the setting changed, and nothing changed. It looked the same for all 3. Maybe that is the issue?
1795884623453.webp
 
Back
Top Bottom