Closed (fixed)
Project:
Views (for Drupal 7)
Version:
6.x-2.x-dev
Component:
User interface
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
18 Jul 2008 at 16:45 UTC
Updated:
8 Nov 2010 at 20:24 UTC
Jump to comment: Most recent file
Comments
Comment #1
merlinofchaos commentedI'm sorry, I don't understand what you mean. You've woefully neglected to provide any kind of context.
Comment #2
sami_k commentedSorry about that Earl. I mean when you have a view with a pager that loads the next page using ajax. When you click the pager and load the next page, say page 2, it does not scroll to the top of the page and instead stays exactly in scroll position that it was in on the last page, which means the bottom of the page. The user then has to scroll to the top themselves in order to view Page 2. It should scroll to the top of the page every time a new page loads via ajax or ideally the first item in the view. Does that make enough sense, I can provide screen shots if you're still not clear on what I mean.
Comment #3
merlinofchaos commentedHmm. I see. I'll give that some thought.
Since that behavior was never intended I"m classifying this as a feature request.
Comment #4
dropchew commentedIts good to have this feature, users will expect the page to go to the top. subscribing and thanks
Comment #5
matt_paz commentedAlso subscribing ... wish there was a better way to do that ... sorry about the noise. +1 on this feature request from me.
Comment #6
Gurpartap Singh commentedIt's there in views now.
May I ask if a patch for smooth scrolling to the top will be entertained? Some users might get surprised by a sudden scroll, whereas with a smoother animation at least they'll know something's happening and it's taking them to top.
Comment #7
Gurpartap Singh commentedAnd without asking, here it goes(I'm using the same in paging dev):
Comment #8
matt_paz commentedSeems to work well.
Comment #9
merlinofchaos commentedSomehow I'd missed that scrollto actually going in; it must've been in one of Nedjo's patches and I didn't see it.
Gurpartap, do you know if it's possible to analyze where we're scrolling to and see if it's already visible? If it is, I would really like to NOT scroll and only do so if it's not visible. I've already found this kind of annoying once.
Comment #10
gunzip commentedI can see at least one case when scrolling is annoying:
if you have a sidebar block with one node that updates itself with an ajax call (clicking next in the pager)
then the page should NOT scroll at all i think.
Comment #11
Gurpartap Singh commentedit does NOT scroll to the page top. it scrolls to that view's top.
@merlinchaos Should be possible, but would be very tricky code for some cases.
Comment #12
merlinofchaos commentedIf not, let's remove the scrollto altogether. I dislike it.
Comment #13
merlinofchaos commentedhttp://drupal.org/node/284413 has a patch that fixes this some.
Comment #14
Gurpartap Singh commentedhttp://drupal.org/node/376570
Comment #16
jrefano commentedin ie8, all ajax pagers trigger a scroll to the top of the page. in firefox, safari and chrome, they trigger a scroll to the of the view that contained the pager you've clicked. anyone else seeing this?
Comment #17
dawehnerIf this is a bug for you this should be a bug of jquery, which cannot be fixed from views.
Comment #18
iamjon commentedmarking this as closed