Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
現在、 http: //cubiq.org/iscroll-4 の iScroll 4 を使用して、タッチ デバイスでのスクロールを有効にしています。問題は、最後の要素が正しく表示されないことです。最後の要素をスクロールの開始位置までスクロールさせたい。私はそれを機能させる方法を理解していません。最後の要素が画面幅の中央に来ていません。最初の要素を画面の中央に配置しました。助けてくれてありがとう。
(Screen width - Element width) + (Number of elements*Element width)最後の要素をスクロールの開始位置に移動するだけです。ここで私の場合は画面の中央です。
(Screen width - Element width) + (Number of elements*Element width)