angular-ui / angular-ui/ui-scroll

How "wheelHandler" is working

オープン
#198 コメント 12 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
JavaScript
スター
326
フォーク
104
PR マージ指標
30日以内にマージされた PR はありません

説明

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.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。