Project:Views
Version:7.x-3.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

Page jumps on Mac FF3 when AJAX pager link is clicked.

In order to reproduce this create any view, resize the window so that you have a vertical scroller for your window, then click on the pager. For this being an AJAX implementation, it is very jarring user experience.

Comments

#1

is anyone else effected by this?

#2

same thing it's annoying

#3

This small patch smooths out this behavior:

  • Adds animation for scrolling between window positions
  • Only scrolls upward on an AJAX load (e.g. you click a pager and want to see what's at the top of the view). Scrolling downward almost always seems obtrusive to me.
AttachmentSize
ajax_view_scroll.patch.txt 1 KB

#4

Status:active» needs review

Whoops, setting to CNR.

#5

I patched the file with this code and really like it! I can't say I've tested it thoroughly though. The main thing I notice is that the spinning blue progress graphic doesn't show up any more.

If the top of the view is visible within the page's content area, the behavior is like 2.2, the page does not jump, and the view pages in-place.

But if the page has scrolled down so far as to cut off the top of the view, then clicking the pager will gently scroll the content of the page up enough so the top of the view is visible.

Very nice.

The only thing that would make this even more cool is if, for simple blocks, there was the option to scroll up enough to also show the block's header text (the name set in the blocks page). For now is only scrolls up enough to show the top of the view.

In any case, non-jumpy paging has me jumping for joy again. :-)

#6

The patch in #3 works perfect for me

#7

Status:needs review» fixed

Yay, that's something I was looking for in http://drupal.org/node/284413. Thanks!

#8

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

#9

Version:6.x-2.3» 7.x-3.x-dev

Is it possible to port the patch from #3 to D7?

#10

Category:bug report» feature request

#11

subscribing

#12

Hello, is there a solution to remove the scroll entirely?

#13

nicothezulu, I'm actually running into a bug that is doing exactly that #1226290: Panels Everywhere breaks views paging

nobody click here