[英]Why does the JavaScript scroll() function behave in reverse?
From this thread: Vertical Scroll down and scroll up in Selenium WebDriver with java 在此线程中: 垂直使用Java在Selenium WebDriver中向下滚动并向上滚动
I understand that scroll(xpos, ypos)
needs: 我了解到scroll(xpos, ypos)
需要:
However, isn't it that in the Cartesian Plane, down is negative for y-axis? 但是,不是在笛卡尔平面中,y轴的向下方向为负吗?
If anyone can clarify, that would be great. 如果有人可以澄清,那就太好了。 Thanks! 谢谢!
I think, I have found a highly relevant reading and also proof: 我认为,我发现了一个高度相关的阅读材料并证明:
Why is the origin in computer graphics coordinates at the top left? 为什么计算机图形坐标的原点在左上方?
And since browsers display through a monitor, the same applies. 由于浏览器是通过监视器显示的,因此同样适用。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.