Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(dom): vertical getPointerPosition value (#6864)
From my understand, in the changes #5773, the Y position of all the boxes is already calculated and accounted for in the offsetY value we get. However, because the HTML coordinate system has Y=0 at the top, when we do offsetY/boxH, we get a position relative to the top of the element. However, we expect that position relative to the "start" of the slider, or the bottom of it. Therefore, we want to get the inverse value, which is '1 - clamp(offsetY/boxH)'. Fixes #6863
- Loading branch information