question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Inconsistent active page updates when performing client-side vertical scrolling

See original GitHub issue

I’m submitting a … (check one with “x”)

[x] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here

Current behavior

The active page is updated automatically when when client-side page updates and client-side vertical scrolling are enabled. The active page reaches an inconsistent state when scrolling up and down across page divides. This can be seen on the ngx-datatable demo page:

  1. Go to http://swimlane.github.io/ngx-datatable/
  2. Click “Sorting > Client-side” in the left navigation
  3. Scroll down until “Netur” is barely visible. The active page is page 2.
  4. Scroll up slightly. The active page is page 3.
  5. Scroll back down slightly. The active page is page 2.

The active page should not increase from page 2 to page 3 when scrolling up. The active page should not decrease when scrolling down.

Expected behavior

The page number should be consistent. When you scroll up the active page should either stay the same or decrease. When you scroll down the active page should either stay the same or increase.

Reproduction of the problem

This can be seen on the ngx-datatable demo page:

  1. Go to http://swimlane.github.io/ngx-datatable/
  2. Click “Sorting > Client-side” in the left navigation
  3. Scroll down until “Netur” is barely visible. The active page is page 2.
  4. Scroll up slightly. The active page is page 3.
  5. Scroll back down slightly. The active page is page 2.

What is the motivation / use case for changing the behavior?

The motivation is showing a page change that is consistent with the scrolling direction.

Please tell us about your environment:

Win 7, PhpStorm, npm, node.

  • Table version: 0.7.x

6.3.0

  • Angular version: 2.0.x

2.4.8

  • Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]

all

  • Language: [all | TypeScript X.X | ES6/7 | ES5] all

I am going to submit a suggested fix for this.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
tw3commented, Feb 27, 2017

I created a pull request for the suggested change:

https://github.com/swimlane/ngx-datatable/pull/569

0reactions
deegcommented, Mar 7, 2017

@amcdnl, I believe this landed and can be closed unless there was an issue with the fix.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Best practices for using third-party embeds - web.dev
This article discusses performance best practices that you can use when loading third-party embeds, efficient loading techniques and the ...
Read more >
Known Issues and Limitations (igGrid) - Ignite UI
Scrolling with a horizontal scrollbar until the end of a non-virtualized grid and then trying to scroll vertically with a vertical scrollbar does...
Read more >
Fix list for IBM Business Automation Workflow
APAR/Known Issue Security Title JR65073 X MULTIPLE SECURITY VULNERABILITIES IN SWAGGER UI DT143805 FIX FOR JR64316 IS INCOMPLETE DT143824 PDW PRUNE FAILS WITH A SQL EXCEPTION...
Read more >
Conga TurboEngines December21.02.04 Release Notes
In the TurboPricing flow, the progress bar appears a second time even after sync action has started. CPQ-52179, On the Cart page, CPQ...
Read more >
Enable Vertical Scrolling in a Dossier - MicroStrategy
In the Contents pane, right-click the page and choose Format Page. · You can extend your canvas by setting a minimum page height....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found