angular-ui / angular-ui/ui-scroll

How "wheelHandler" is working

Open
#198 12 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
326
Forks
104
PR merge metrics
No merged PRs in 30d

Description

Hi all!

Sorry, but I have another question about how the plugin works. I have a div as "ui-scroll-viewport", with a custom height, and inside it a table, something like that:

```



[...]

[...]







```

The data is retieved via endpoint call, with a size of 10 in each call. Everything works as expected in Firefox, but in Chrome, when the data fetched is less than 20, and viewport div height is more than 300px, wheel mouse is not working. I've gone deep in the JS and the problem is in the `wheelHandler` function, that when the wheel mouse is not working, `buffer.bof ` is set to `true`, but in the other case, is set to `false`. Nevertheless, and although I've tried to investigate it, I don't know how `buffer.bof` is set to true.

Thanks in advance!
Regards,
Miguel.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.