-
在 JavaScript 中判断是否滑动到底部,需要考虑兼容性问题。以下是一种可靠的兼容各种浏览器的方式:
```javascript
function isScrollToBottom() {
var scrollTop = document.documentElement.scrollTop || document.body.scrollTop;
var scrollHei…
-
Hi
The current implementation seems to assume you care about scrolltop of the window, and I want it to be within the parent.
I changed the calcs to use the scrollTop of the (specified) parent a…
-
I need to create a virtual list. For this I need to keep track of scrollTop, so that I can add/ remove elements.
Could you suggest if scrollability can provide me that ?
Thanks,
Kanwaljeet
KKS1 updated
11 years ago
-
hash changes so fast when scroll top, it will scroll to the very top very fast
-
Though in codepen demo works, in my case the firefox 41.0.1 and IE 11 dont calculate the body scroll correctly returning 0 instead of 1000+
This doesn't happen in Chrome.
I fixed this for me changing …
-
Is there a reason why there's no `bind:scrollX` for dom nodes ? I see there are for window. I rolled my own solution, but it felt like it should be supported!
weepy updated
2 months ago
-
If the overlay have a lot of text, after create it I try to use Jquery animate after but doesnt work like:
```
var jPopupDemo = new jPopup({
content: $('.worlds-popu…
-
**Describe the bug**
I often get an error for checks:
TypeError: Cannot read properties of null (reading 'scrollTop') at eval (eval at evaluate (:191:30), :12:67) at UtilityScript.evaluate (:198:19)…
-
On some pages, the auto reload feature seems to be causing the following JavaScript error:
> TypeError: Cannot set property 'scrollTop' of null
Apologies if this is a goose chase, but this does seem…
-
I played with CSS and JS and improved the graph display. Now, the graph won't go out of bounds, and is scrollable.
Here's the CSS:
```css
.block-language-desmos-graph {
max-width: 100%;
max…