How to get the Y scroll position relative to the last scroll in Vanilla JS?

后端 未结 0 1173
没有蜡笔的小新
没有蜡笔的小新 2021-01-05 04:27

I want to get the scroll Y offset since the last scroll. window.pageYOffset gives me the offset since the start of the page. However, I do not want this, I want

相关标签:
回答
  • 消灭零回复
提交回复
热议问题