Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fnScrollToRow seems wonky #30

Open
existentialism opened this issue Jul 11, 2014 · 9 comments
Open

fnScrollToRow seems wonky #30

existentialism opened this issue Jul 11, 2014 · 9 comments

Comments

@existentialism
Copy link

We've been noticing some real weirdness with using fnScrollToRow sometimes causing it to jump to a completely unexpected row.

Here's it on the example page:
mm

I'll try to find time to dig into this more...

@DataTables
Copy link
Collaborator

Are you using the latest version from git or the release? There are a few problems wight he current release version that have been fixed.

@existentialism
Copy link
Author

Originally reported using latest from git as of last night, just updated and still see the same problems.

@DataTables
Copy link
Collaborator

Okay thanks. If you could link to a test case showing the issue that would be very helpful so I can debug it.

@existentialism
Copy link
Author

The gif I took above is from me just randomly running commands via console on:
http://datatables.net/release-datatables/extensions/Scroller/examples/server-side_processing.html

@DataTables
Copy link
Collaborator

Okay thanks. I'll try to take a look at it as soon as I can.

@DataTables
Copy link
Collaborator

The setTimeout( ..., 0 ) I had wasn't enough in Chrome. It needs to be a non-zero value, otherwise the animation will trigger a scroll event, with without the animating flag it was trigger a redraw - prematurely... Changing to 25mS appears to do the business.

@existentialism
Copy link
Author

@DataTables thanks for the fast fix!

@existentialism
Copy link
Author

@DataTables hate to revive this, but it seems we're still seeing a bit of odd behavior when using scrollToRow().

Our users tend to do linear review through rows, and we leverage scrollToRow to not only help keep a marker where the users are, but to ensure the list is continuously filled with data via infinite scrolling as well. I've been able to reproduce situations where scrollToRow() will either jump to the wrong row, or cause the table to completely empty.

This can also be seen on:
http://datatables.net/release-datatables/extensions/Scroller/examples/server-side_processing.html

Note around when scrolling to row 26, it jumps to 43?

mm

Any thoughts?

@DataTables
Copy link
Collaborator

Not sure off the top of my head I'm afraid. Completely backed up with support requests so it will be a little while before I can get to this one.

@DataTables DataTables reopened this Aug 27, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant