How to use JS to make a roller plug-in similar to the native one?

requirements:

JS

:

overflow:scroll:

1.

:

2.scrolltouchstart, touchmove, touchend

:touchendtouchend

LAreatouchstart, touchmove, touchendtransform

the picture above is my scroll wheel plug-in made with JS. Only part of the scroll wheel is completed, but each scrolling text message is positioned in the middle and has not yet been completed. You can use this code to start the
project address:
https://github.com/mrxu0/Whee.

.
Mar.26,2021

Picker selector. Many off-the-shelf components are available. It is recommended that the subject directly look at their source code

.
Menu