Skip to content

How "wheelHandler" is working #198

Description

@MiguelAngel82

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:

<div ui-scroll-viewport style="height:300px">
        <table>
            <thead>
            [...]
            </thead>
            <tbody ui-scroll="document in datasource" adapter="adapter">
            <tr>
            [...]
            </tr>
            </tbody>
       </table>
</div>

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions