2

I have the following code snippet:

<script language="javascript">
var readAll = false;
$("#termo").on("scroll", function() {

    if (readAll) return;

    readAll = this.scrollHeight - this.scrollTop === this.clientHeight;

    if (readAll) {
        document.getElementById("aceitetermo").disabled = false;
    }
});

This code works perfectly on the computer in both browser and mobile mode, enabling the button at the end of the scroll. However when I test on the phone by Chrome it does not run. In Mozilla it works normally.

Does anyone have any idea what it could be?

0 Answers0