Bug Tracker

Modify

Ticket #10419 (closed bug: invalid)

Opened 20 months ago

Last modified 14 months ago

error in google chrome

Reported by: smile.80@… Owned by:
Priority: low Milestone: None
Component: effects Version: 1.6.4
Keywords: Cc:
Blocking: Blocked by:

Description

use $(window).animate( {'scrollTop' : 100 }, 1000 );

Uncaught TypeError: Cannot read property 'defaultView' of undefined c.defaultView.c.defaultView.getComputedStyle.bwjquery.min.js:4 f.extend.cssjquery.min.js:4 f.fx.curjquery.min.js:4 f.fn.extend.animate

Change History

comment:1 follow-up: ↓ 3 Changed 20 months ago by timmywil

  • Priority changed from undecided to low
  • Resolution set to invalid
  • Status changed from new to closed
  • Component changed from unfiled to effects

The window does not have scrollTop. Animate scrollTop on html or the body.

comment:2 Changed 20 months ago by timmywil

#8425 is a duplicate of this ticket.

comment:3 in reply to: ↑ 1 Changed 14 months ago by jquery.com@…

Replying to timmywil:

The window does not have scrollTop. Animate scrollTop on html or the body.

If the window does not have scrollTop, how come this works as expected: $(window).scrollTop(100)

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.