Skip to main content

Bug Tracker

Side navigation

#10419 closed bug (invalid)

Opened October 04, 2011 06:23PM UTC

Closed October 04, 2011 06:51PM UTC

Last modified March 24, 2012 02:22PM UTC

error in google chrome

Reported by: smile.80@bk.ru Owned by:
Priority: low Milestone: None
Component: effects Version: 1.6.4
Keywords: Cc:
Blocked by: Blocking:
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

Attachments (0)
Change History (3)

Changed October 04, 2011 06:51PM UTC by timmywil comment:1

component: unfiledeffects
priority: undecidedlow
resolution: → invalid
status: newclosed

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

Changed October 04, 2011 06:52PM UTC by timmywil comment:2

#8425 is a duplicate of this ticket.

Changed March 24, 2012 02:22PM UTC by jquery.com@site.lanzz.org comment:3

Replying to [comment:1 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)