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

Could not use scroll bar to auto scroll down the event list #21

Closed
saba-ja opened this issue Aug 15, 2021 · 1 comment
Closed

Could not use scroll bar to auto scroll down the event list #21

saba-ja opened this issue Aug 15, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@saba-ja
Copy link
Contributor

saba-ja commented Aug 15, 2021

F´ Version F' GDS 2.0
Affected Component events.js

Problem Description

Could not use scroll bar to auto scroll down the event list.
This issue was observed only on Browsers running on Windows OS.

How to Reproduce

  1. Create more than 100 EVRs
  2. Without being connected to a mouse use touchpad to scroll to the bottom of the Event list.
  3. Observe the Event list does not get updated despite having more than 100 EVRs.

Expected Behavior

Event list should get updated when using scroll bar.

@saba-ja saba-ja added the bug Something isn't working label Aug 15, 2021
@saba-ja
Copy link
Contributor Author

saba-ja commented Aug 15, 2021

The script subtracts element hight from element top to find out if scroll bar is at the bottom. If the result of subtraction is 0 it assumes scroll bar is at the bottom.
The issue is scrollableElm.scrollTop returns an integer on Chrome running on Mac, but it returns a float on Chrome running on Windows as shown below:

Element top, Chrome on Mac:
Mac_Elm_Top

Element top, Chrome on Windows:
Windows_ElmTop

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant