cubiq / iscroll

Smooth scrolling for the web
http://iscrolljs.com
MIT License
12.87k stars 3.8k forks source link

what? #1066

Open ppetree opened 8 years ago

ppetree commented 8 years ago

Seriously, I just visited the site, read all the documentation and, honestly, I still have ZERO idea how to implement a basic scroller!

All I want is a bloody spinning wheel to denote floors of a building (think 9/11).

I literally couldn't grasp that from the documentation... It can't be that hard... what makes it worse is that I'm OLD... yeah, both in years and experience... I've been writing code since 1985 and I have 1000's of success projects under my belt and my eyes rolled to the back of my head in trying to figure this out!

Is it really this hard to set up a basic number wheel? Is it really this hard to set up a basic date wheel? Is it really this hard to set up a wheel that lists all the fish in the sea?

When using this within a mobile app and a platform such as phonegap do you realize what all those

  • elements do? You effectively kill a page. I mean kill it dead!

    Mind you, this might sound harsh but its not meant to be... surely some documentation is missing or, I'm really just too old to be doing this!

    Help!

  • d46 commented 8 years ago

    Hey pa , first make it simple practice.

    Create a html structure like that.

    <div id="wrapper">
        <ul>
            <li>...</li>
            <li>...</li>
            ...
        </ul>
    </div>

    and make it css scroll on #wrapper with overflow:scroll property

    if you will get scrolling content area on wrapper now u can use iscroll on this.

    change back overflow property to hidden and use this

    <script type="text/javascript">
    var myScroll = new IScroll('#wrapper');
    </script>
    ppetree commented 8 years ago

    Thanks for your response but its simply not enough information for me... javascript isn't my primary language and there are too many missing pieces.

    Also, when using a <li>...</li> for a large number of selects like the floors in a building, the webview can't handle them. On mobile devices this method becomes a problem.