Questions tagged [scroll]

Scrolling refers to the continuous sliding of content across a display screen.

Scrolling generally occurs on the horizontal and vertical axes. In addition scrolling can be accomplished via mouse, trackpad, trackball and the keyboard.

Wikipedia article: http://en.wikipedia.org/wiki/Scrolling

20210 questions
2479
votes
32 answers

jQuery scroll to element

I have this input element: Then I have some other elements, like other text inputs, textareas, etc. When the user clicks on that input with #subject, the page should scroll…
DiegoP.
  • 42,459
  • 34
  • 85
  • 101
1738
votes
44 answers

Scroll to the top of the page using JavaScript?

How do I scroll to the top of the page using JavaScript? The scrollbar instantly jumping to the top of the page is desirable too as I'm not looking to achieve smooth scrolling.
KingNestor
  • 59,315
  • 50
  • 115
  • 149
1258
votes
44 answers

How to check if element is visible after scrolling?

I'm loading elements via AJAX. Some of them are only visible if you scroll down the page. Is there any way I can know if an element is now in the visible part of the page?
yoavf
  • 19,315
  • 9
  • 34
  • 37
829
votes
30 answers

Making TextView scrollable on Android

I am displaying text in a TextView that appears to be too long to fit into one screen. I need to make my TextView scrollable. How can I do that? Here is the code: final TextView tv = new…
714
votes
28 answers

Check if a user has scrolled to the bottom

I'm making a pagination system (sort of like Facebook) where the content loads when the user scrolls to the bottom. I imagine the best way to do that is to find when the user is at the bottom of the page and run an ajax query to load more posts. The…
Johnny
  • 8,590
  • 5
  • 24
  • 33
663
votes
14 answers

How to move screen without moving cursor in Vim?

I recently discovered Ctrl+E and Ctrl+Y shortcuts for Vim that respectively move the screen up and down with a one line step, without moving the cursor. Do you know any command that leaves the cursor where it is but moves the screen so that the line…
ereOn
  • 48,328
  • 33
  • 147
  • 228
535
votes
28 answers

Smooth scrolling when clicking an anchor link

I have a couple of hyperlinks on my page. A FAQ that users will read when they visit my help section. Using Anchor links, I can make the page scroll towards the anchor and guide the users there. Is there a way to make that scrolling smooth? But…
Only Bolivian Here
  • 32,571
  • 60
  • 151
  • 250
477
votes
41 answers

How to disable scrolling temporarily?

I'm using the scrollTo jQuery plugin and would like to know if it is somehow possible to temporarily disable scrolling on the window element through Javascript? The reason I'd like to disable scrolling is that when you scroll while scrollTo is…
Olivier Lalonde
  • 17,330
  • 28
  • 69
  • 86
400
votes
20 answers

Maintain/Save/Restore scroll position when returning to a ListView

I have a long ListView that the user can scroll around before returning to the previous screen. When the user opens this ListView again, I want the list to be scrolled to the same point that it was previously. Any ideas on how to achieve this?
rantravee
  • 7,223
  • 9
  • 32
  • 46
393
votes
3 answers

How to increase scrollback buffer size in tmux?

How do I increase scrollback buffer size in tmux? If I enter copy mode, the number of available scrollback lines (visible in upper right corner) is always below 2000. I tried to find a list of all tmux commands, but I can't find anything about…
moon.musick
  • 4,256
  • 2
  • 22
  • 22
382
votes
45 answers

Prevent BODY from scrolling when a modal is opened

I want my body to stop scrolling when using the mousewheel while the Modal (from http://twitter.github.com/bootstrap) on my website is opened. I've tried to call the piece of javascript below when the modal is opened but without…
xorinzor
  • 5,477
  • 9
  • 34
  • 65
328
votes
21 answers

How can I make a div stick to the top of the screen once it's been scrolled to?

I would like to create a div, that is situated beneath a block of content but that once the page has been scrolled enough to contact its top boundary, becomes fixed in place and scrolls with the page.
evanr
  • 3,466
  • 3
  • 17
  • 15
321
votes
12 answers

How do I automatically scroll to the bottom of a multiline text box?

I have a textbox with the .Multiline property set to true. At regular intervals, I am adding new lines of text to it. I would like the textbox to automatically scroll to the bottom-most entry (the newest one) whenever a new line is added. How do…
GWLlosa
  • 22,656
  • 17
  • 75
  • 108
296
votes
9 answers

Listview Scroll to the end of the list after updating the list

I would like to make sure that the list is scrolled all the way to the bottom, after I have updated the listview by using listAdapter, so that it displays the last element entered in the list. How can I do this ? I tried this but no…
jramirez
  • 7,963
  • 6
  • 29
  • 45
288
votes
16 answers

Keep overflow div scrolled to bottom unless user scrolls up

I have a div that is only 300 pixels big and I want it to when the page loads scroll to the bottom of the content. This div has content dynamically added to it and needs to stay scrolled all the way down. Now if the user decides to scroll up I don't…
Robert E. McIntosh
  • 4,347
  • 4
  • 23
  • 32
1
2 3
99 100