Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

Lay Theme Forum

  1. Home
  2. Feedback
  3. horizontal scroll behaviour on carousel

horizontal scroll behaviour on carousel

Scheduled Pinned Locked Moved Feedback
18 Posts 2 Posters 300 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • arminunruhA Offline
    arminunruhA Offline
    arminunruh
    Global Moderator
    wrote on last edited by
    #4

    https://stackoverflow.com/questions/15829172/stop-chrome-back-forward-two-finger-swipe

    it seems like you could maybe use this css:

    html, body {
    overscroll-behavior-x: none;
    }

    in that link, there are some other answers you can try,
    like this js solution

    <script>
    document.addEventListener(
      'touchstart',
      this.handleTouchStart,
      {passive: false}
    )
    document.addEventListener(
      'touchmove',
      this.handleTouchMove,
      {passive: false}
    )
    </script>
    
    1 Reply Last reply
    1
    • A Offline
      A Offline
      alasdair17
      wrote on last edited by
      #5

      thanks @arminunruh that css code works great for disabling the left and right gestures on trackpad.

      Each page will have the carousel mouse scroll so there won't be any scrolling down. Do you have any tips or specific classes to look out for when editing the carousel css to size down the images/text to fit into tablets? I'm struggling with getting the images to fit within the tablet browser window not letting the text overlap. I've tried adjusting the "calc %" height in inspector but it seems to stretch the image.

      My client is keen for this mouse scroll layout to work on tablets (mobile will be a standard vertical layout) so any tips would be helpful! thanks man

      1 Reply Last reply
      0
      • arminunruhA Offline
        arminunruhA Offline
        arminunruh
        Global Moderator
        wrote on last edited by arminunruh
        #6

        size down the images/text to fit into tablets?

        choose fixed height in carousel options and give carousel a height of 100svh?
        or 100dvh

        not sure if you mean this

        I'm struggling with getting the images to fit within the tablet browser window not letting the text overlap.

        i dont know what text u mean do u have a link

        My client is keen for this mouse scroll layout to work on tablets

        how does it work on tablets?
        can he scroll left and right on a tablet with "mouse scroll" enabled?

        A 1 Reply Last reply
        0
        • arminunruhA arminunruh

          size down the images/text to fit into tablets?

          choose fixed height in carousel options and give carousel a height of 100svh?
          or 100dvh

          not sure if you mean this

          I'm struggling with getting the images to fit within the tablet browser window not letting the text overlap.

          i dont know what text u mean do u have a link

          My client is keen for this mouse scroll layout to work on tablets

          how does it work on tablets?
          can he scroll left and right on a tablet with "mouse scroll" enabled?

          A Offline
          A Offline
          alasdair17
          wrote on last edited by
          #7

          @arminunruh thanks armin. Will work on it some more and send a link. Yeah sorry mouse scroll wouldn't work on tablets, but I just tried it in the apple shop (don't have a tablet!) and is a little sticky when I swipe it. Maybe because mousescroll is on, i'm not sure. I think for what he wants using the full screen slider would just be easier, is not at all possible to have horizontal scroll on the FSL?

          1 Reply Last reply
          0
          • arminunruhA Offline
            arminunruhA Offline
            arminunruh
            Global Moderator
            wrote on last edited by
            #8

            there is no horizontal scroll feature for lay theme, only swiping left and right for fullscreen slider or carousel mmh

            do you need captions and numbers too?

            A 1 Reply Last reply
            0
            • arminunruhA arminunruh

              there is no horizontal scroll feature for lay theme, only swiping left and right for fullscreen slider or carousel mmh

              do you need captions and numbers too?

              A Offline
              A Offline
              alasdair17
              wrote on last edited by
              #9

              @arminunruh ah yeah no worries.

              yes to needing captions and numbers.

              1 Reply Last reply
              0
              • arminunruhA Offline
                arminunruhA Offline
                arminunruh
                Global Moderator
                wrote on last edited by
                #10

                ok i will think about how to code this, maybe i can add a feature to the carousel to just have a horizontal scroll

                A 1 Reply Last reply
                1
                • arminunruhA arminunruh

                  ok i will think about how to code this, maybe i can add a feature to the carousel to just have a horizontal scroll

                  A Offline
                  A Offline
                  alasdair17
                  wrote on last edited by
                  #11

                  @arminunruh thank you!

                  1 Reply Last reply
                  0
                  • arminunruhA Offline
                    arminunruhA Offline
                    arminunruh
                    Global Moderator
                    wrote on last edited by
                    #12

                    hey so

                    two things i thought about:

                    • on a windows pc, often people cant scroll horizontally, unless they have a horizontal scrollbar.

                    • why dont you use transition slide, and "free drag" option?
                      thats like scrolling horizontally at least on a touchdevice. on a mac or pc you need to drag left and right instead
                      Screenshot 2025-01-28 at 10.08.42.png

                    1 Reply Last reply
                    0
                    • arminunruhA Offline
                      arminunruhA Offline
                      arminunruh
                      Global Moderator
                      wrote on last edited by arminunruh
                      #13

                      look, i coded the basic version of it:
                      https://capture.dropbox.com/nDFR4VaLjIBBuNal

                      however, i would still need to work on the other features to be compatible like:

                      • left and right buttons
                      • dots as navigation underneath
                      • click to navigate
                      • left/right cursors
                      • setting for gaps between images
                      • pause/play youtube/vimeo videos

                      i dont have much time for this at the moment.
                      not sure when i can do it

                      also: how will people even know they have to scroll horizontally?
                      you'd probably totally need either "dots as navigation underneath", or "left and right buttons" or "left/right cursors"

                      1 Reply Last reply
                      0
                      • A Offline
                        A Offline
                        alasdair17
                        wrote on last edited by
                        #14

                        thanks @arminunruh! could you release an update or send me a version to try it out? I'm getting a lend of an ipad so I can test it on there too. I am seeing the client today and I will mention this to him.

                        1 Reply Last reply
                        0
                        • A Offline
                          A Offline
                          alasdair17
                          wrote on last edited by
                          #15

                          hey @arminunruh really really sorry but I just spoke with my client and I explained to him the drawbacks of the horizontal scroll and we have decided to just go with a simple vertical layout, it makes more sense for what he needs so we won't be using the horizontal scroll or carousel. Sorry if I wasted your time. I hope the horizontal scroll on carousel will come in useful for something else.

                          1 Reply Last reply
                          0
                          • arminunruhA Offline
                            arminunruhA Offline
                            arminunruh
                            Global Moderator
                            wrote on last edited by
                            #16

                            ok

                            i think the horizontal scroll is a viable option if you also use dots as navigation below, or arrow buttons

                            1 Reply Last reply
                            1
                            • arminunruhA Offline
                              arminunruhA Offline
                              arminunruh
                              Global Moderator
                              wrote on last edited by arminunruh
                              #17

                              hey if you update lay theme and carousel addon, you will now have the "horizontal scroll" as transition type when you edit a carousel.

                              also its now compatible with the other carousel settings:
                              left and right buttons
                              dots as navigation underneath
                              click to navigate
                              left/right cursors
                              setting for gaps between images
                              pause/play youtube/vimeo videos

                              compared to "sliding" transition type, the settings are much less

                              A 1 Reply Last reply
                              0
                              • arminunruhA arminunruh

                                hey if you update lay theme and carousel addon, you will now have the "horizontal scroll" as transition type when you edit a carousel.

                                also its now compatible with the other carousel settings:
                                left and right buttons
                                dots as navigation underneath
                                click to navigate
                                left/right cursors
                                setting for gaps between images
                                pause/play youtube/vimeo videos

                                compared to "sliding" transition type, the settings are much less

                                A Offline
                                A Offline
                                alasdair17
                                wrote on last edited by alasdair17
                                #18

                                @arminunruh hey, thank you so much for working on this despite no longer requiring it for this website I am working on. Hopefully it will come in useful for another website. I hope I didn't take too much time away from you when you could have worked on something else.

                                1 Reply Last reply
                                0
                                Reply
                                • Reply as topic
                                Log in to reply
                                • Oldest to Newest
                                • Newest to Oldest
                                • Most Votes


                                I also code custom websites or custom Lay features.
                                šŸ’æ Email me here: šŸ’æ
                                info@laytheme.com

                                Before you post:
                                1. When using a WordPress Cache plugin, disable it or clear your cache.
                                2. Update Lay Theme and all Lay Theme Addons
                                3. Disable all Plugins
                                4. Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"

                                This often solves issues you might run into

                                When you post:
                                1. Post a link to where the problem is
                                2. Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
                                3. If the problem is difficult to explain, post screenshots / link to a video to explain it
                                Online Users
                                Forgot your key, lost your files, need a previous Lay Theme or Addon version? Go to www.laykeymanager.com
                                laytheme.com
                                • Login

                                • Don't have an account? Register

                                • Login or register to search.
                                • First post
                                  Last post
                                0
                                • Recent
                                • Tags
                                • Popular
                                • Users
                                • Search