Jaroslaw-K / responsive_slider

0 stars 0 forks source link

touchEndHandler() It is very long and complex function #1

Open Greaver123 opened 1 year ago

Greaver123 commented 1 year ago

https://github.com/Jaroslaw-K/responsive_slider/blob/14611209d41c64583593935424209a5176af2d6a/src/Components/Slider/SliderMobile/SliderMobile.js#L133

For sure it can be splited for couple of smaller functions and refactored in a way that it will be more readable.

Greaver123 commented 1 year ago

There is also a lot of if-s and condition logic. Its hard to read and understand