angular-ui / angular-ui/ui-scroll

How "wheelHandler" is working

Ouverte
#198 12 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
JavaScript
Étoiles
326
Forks
104
Métriques de merge des PR
Aucune PR mergée en 30 j

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.

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.