Opened 12 years ago

Closed 11 years ago

Last modified 11 years ago

#11110 closed defect (fixed)

dojox.fx.smoothScroll bounces the offset back and forth when called repeatedly

Reported by: Nick Fenwick Owned by: nic
Priority: high Milestone: 1.6
Component: Dojox Version: 1.5.0b2
Keywords: smoothScroll Cc:
Blocked By: Blocking:


Previously mentioned at #10640, I've found that calling smoothScroll more than once causes the view to bounce back to an earlier position. I'll attach a sample page, but you need a version of dojo that isn't on CDN to show the bug. Try, which should be using 1.5b2, or use the attached source.

So, with a target node that's offscreen:

  • smoothScroll to that node, it comes into view
  • smoothScroll to that node again, the view scrolls to a different location.

e.g. load my test page, you will have box 0 in view, with up to box 29 in the list.

  • Click "go to 13" - box 13 comes into view
  • Click "go to 13" again - the view scrolls back to the top.

Attachments (1)

smoothscroll.html (2.9 KB) - added by Nick Fenwick 12 years ago.

Download all attachments as: .zip

Change History (5)

Changed 12 years ago by Nick Fenwick

Attachment: smoothscroll.html added

comment:1 Changed 12 years ago by nic

Owner: changed from Adam Peller to nic

comment:2 Changed 11 years ago by Nick Fenwick

Just to mention, this still seems to be a bug in 1.5.0.

comment:3 Changed 11 years ago by nic

Resolution: fixed
Status: newclosed

(In [22990]) bounce effect removed on repeated calls, fixes #11110

comment:4 Changed 11 years ago by bill

Milestone: tbd1.6
Note: See TracTickets for help on using tickets.