a scroll container
physical delta (e.g. WheelEvent.deltaX)
the container is right-to-left
true if a scroll by dx would move the content
host.addEventListener("wheel", e => {
const takesIt = canScrollHorizontally(host, e.deltaX, getComputedStyle(host).direction === "rtl");
console.info(takesIt ? "the element scrolls itself" : "pass it on");
});
1.1.98
Whether a scroll container can still scroll horizontally by
dx(physical:dx > 0= to the right) – for left-to-right and right-to-left containers alike.