How to scroll within an element, controlled by a mouse click?
I have a code that allows me to scroll inside my browser window by holding down the mouse button and moving it, it works pretty well.
Question: how to do the same, but inside a separate div with overflow: scroll style?
Here is my code at the moment:
For example use native scrolling. And in general, why implement such a thing when (judging by the code) this behavior has already been implemented through the mouse wheel?Reese Hampton
To place the code, please use CodePen or similar tool. Thanks you!