Bug Tracker

Modify

Ticket #4654 (closed bug: wontfix)

Opened 4 years ago

Last modified 4 years ago

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
Blocking: Blocked by:

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

Change History

comment:1 Changed 4 years ago by flesler

  • Cc freelancerid added
  • Status changed from new to closed
  • Resolution set to wontfix

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.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.