How can I fix the issue of the scrollbar line not being displayed on iOS devices for the horizontal scroll gallery on my Webflow site?

TL;DR
  • Ensure CSS displays scrollbars, adjust Webflow overflow settings, and verify on real iOS devices.
  • Use -webkit-overflow-scrolling: touch for smooth iOS scrolling and check custom code for issues.

The issue of the scrollbar line not being displayed on iOS devices for your horizontal scroll gallery may stem from specific styling or default behaviors of iOS browsers. Here's how you can address it:

1. Ensure Scrollbar Visibility in CSS

  • Review CSS: Check your site's CSS for any styles that might be hiding the scrollbar.
  • Add Styles: Ensure that the scrollbar properties highlight it visibly. Consider adding -webkit-overflow-scrolling: touch to your gallery container for smoother scrolling on iOS devices.

2. Webflow Designer Adjustments

  • Check Overflow Settings: Go to the element settings in Webflow and ensure that overflow is set to scroll rather than hidden.
  • Style Scrollbar: If you are using custom styles for the scrollbar, ensure they're compatible with WebKit browsers by using the ::-webkit-scrollbar pseudo-element.

3. Test on iOS Devices

  • Real Device Testing: Test the gallery on actual iOS devices, as emulator results might differ.
  • Multiple Browsers: Check the display across different iOS browsers like Safari and Chrome.

4. Check for Interfering Scripts or Styles

  • Review Custom Code: Ensure that any custom JS or CSS doesn't inadvertently hide or affect scrollbars.
  • Disable Styles or Scripts: Temporarily remove custom styles or scripts to see if they are the cause.

Summary

Ensure your CSS allows for visible scrollbars, adjust overflow settings in Webflow, and test on real iOS devices. Modifying your CSS with -webkit-overflow-scrolling: touch can enhance the experience. If problems persist, examine custom coding for interference.

Rate this answer

Other Webflow Questions