Scroller - DataTables 2.0 - 0 based index when using mouse scroll wheel

Scroller - DataTables 2.0 - 0 based index when using mouse scroll wheel

jdaughertyjdaugherty Posts: 3Questions: 2Answers: 0
edited April 14 in Free community support

This problem may have existed before DataTables 2.0, but as part of our upgrade I noticed it. It can be seen in the default example here: https://datatables.net/extensions/scroller/examples/initialisation/server-side_processing.html

If you use a mouse wheel to scroll down barely and then scroll up, the info section of the table will show:

 Showing 0 to 5 of 5,000,000 entries

However, when you load the table, it will show:

Showing 1 to 6 of 5,000,000 entries

If you grab the scroll bar and move it to the starting position, it will show as it loads. A similar boundary condition seems to exist for the end of the data set. For example, it will show:

Showing 4,999,994 to 4,999,999 of 5,000,000 entries

If you use your mouse will to scroll to the end instead of using the scroll bar.

Is this a known issue?

Answers

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin

    Hi,

    Thanks for the report. That was actually resolved here. I need to release the update, which I will do tomorrow.

    Allan

Sign In or Register to comment.