Please check this codepen, the problem is described there. There is also a demo.
https://codepen.io/NeXTs/pen/abBwXVw
// snippet of code required by stackoverflow to post a question
slider.addEventListener("scroll", _.debounce((e) => {
const currentHeight = parseFloat(e.target.style["height"]);
e.target.style["height"] = currentHeight + (flag ? 5 : -5) + "px";
flag = !flag;
}, 50));
I've tested it on Mac and Windows.
Same behavior in Chrome (on mac and windows)
Meanwhile other browsers (even Safari and Opera which are on webkit too) do not jump to the nearest snap point instantly.
It is a bug?
If so, what is the correct place where I can report it? Or what is the correct place (webkit related) where I can ask about it?
from Potential CSS Scroll Snap bug in Chrome
No comments:
Post a Comment