angular-ui / angular-ui/ui-scroll

How "wheelHandler" is working

未關閉
#198 12 則留言 0 個 reaction 已指派 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 摘要。