Side navigation
#4654 closed bug (wontfix)
Opened May 13, 2009 09:06AM UTC
Closed May 13, 2009 12:24PM UTC
Window scrolling in Opera
| Reported by: | freelancerid | Owned by: | brandon |
|---|---|---|---|
| Priority: | major | Milestone: | 1.3.2 |
| Component: | offset | Version: | 1.3.2 |
| Keywords: | scroll window up | Cc: | freelancerid |
| Blocked by: | Blocking: |
Description
Dear,
I have experienced a problem with scrolling window up in Opera browser.
I used this code:
$('html, body').animate({scrollTop: $('#scrollDown').offset().top}, 2000);
It jumps up then animate down. But it should animate UP.
You can see it here:
http://blog.freelancer-id.com/index.php/2009/03/26/scroll-window-smoothly-in-jquery
Attachments (0)
Change History (1)
Changed May 13, 2009 12:24PM UTC by comment:1
| cc: | → freelancerid |
|---|---|
| resolution: | → wontfix |
| status: | new → closed |
You need to detect whether html or body need to be used, according to the browser you're in.
Opera supports both, so it has 2 animations going down and it goes mad.
You could check the plugin jQuery.ScrollTo which does just this.