hew / react-scroll-horizontal

🖱 🔛 Scroll horizontally with the mouse wheel!
212 stars 53 forks source link

How to change the scroll back to vertical mobile view? #108

Open JosephAddant opened 1 year ago

JosephAddant commented 1 year ago

I have encounterd a problem, and as im new to this, could anyone please help me to find the issue or can anyone please tell me how to get vertical scroll in mobile view only?

Heres is the example

import HorizontalScroll from 'react-scroll-horizontal'

function App() {
  const object  = { width: `100vw`, height: `78%`}
    return (
      <div className="App">
        <HorizontalScroll 
        reverseScroll = { true }
        style  = { object }>
          <div className='main bg1'>
            <LandingPage />
          </div>
          <div className='main bg2'>
            <PDP />
          </div>
          <div className='main bg3'>
            <Onboarding />
          </div>
          <div className='main bg4'>
            <Execution1 />
          </div>
        </HorizontalScroll>
      </div>
    );
  }
JosephAddant commented 1 year ago

Any update on this one?????