X
X
xaja2015-09-21 15:44:59
JavaScript
xaja, 2015-09-21 15:44:59

Scrolling a large block inside a small one?

timheckel.github.io/ZyngaScroller/example.html

there is such a thing. in terms of functionality - everything is just fine, except for two things

1. a matryoshka doll of 4 plugins dating back to 2011
2. there is no api by which it would be possible to do this - $scroll.scrollTo(200,200). That is, I want to scroll to the right place on request at the right time.

Requirements:
1. Free block dragging
2. Lightweight (jquery UI does not offer any thread)
3. Block dragging with acceleration. That is, this is how
4 should work on mobile. https://github.com/davetayls/jquery.kinetic does not suggest.

thank!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
G
Gregory, 2015-09-21
@grigruss

<div class="scroll-container" style="width:200px;height:200px;overflow:auto">
    <div class="scroll-text-block">
        <p>дофигакакогонибудьтекста</p>
        <p>оченьдофига</p>
        <img src="https://school-php.com/img/blogs/test1.png">
    </div>
</div>

Well, then any option to set the reaction to scrolling.

K
Kirill Turovnikov, 2015-09-21
@turovnikoff

Here is a good scroll plugin manos.malihu.gr/jquery-custom-content-scroller updated, with documentation, with touch support.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question