Announcement

Epic for iOS and Android are live in the App Store and the Android Play Store. We're EpicBrowser on Twitter and on Facebook. Please feel free to also email our Founder directly with issues or questions: alok at hiddenreflex dot com

#1 Epic Privacy Browser - Help & Troubleshooting » Inconsistent offsetHeight Values When Accessed in JavaScript » 2024-07-25 17:23:33

taha
Replies: 0

Hi! I'm working on an animation tool that doesn't seem to work well on the "Epic Privacy Browser" because the offsetHeight property returns inconsistent values over time.

For example, if the offsetHeight of the body element is 800px, calling document.body.offsetHeight repeatedly gives different values. Sometimes it's 800, other times it's 799, and so on.

You can easily reproduce this issue by running the following code in the browser's developer console:

```
function update() {
  requestAnimationFrame(() => {
    console.log(document.body.offsetHeight)
    update()
  })
}
update()
```

Is this a known issue? Is there a planned fix?

Thank you!

Board footer