Anibal M. due to the custom nature of how this project is setup, its very difficult to troubleshoot this so unfortunately the best I can do is to give you some ideas to try out or things to consider.
- 1.
It doesn't look like this project was started from scratch using our style guide - it looks like you've copy/pasted it into this project after the fact. Generally fine, but you have unknown variable errors that could cause some unexpected behavior - you'll want to clear those up and set some values. I dont think this is related to the issue you mentioned, I just wanted to make you aware of it.
- 2.
I would grab the gallery component and paste it into a page without these other interactions and see if it works as expected. If it does, then I would say there is a conflict between the native gallery slider used in gallery14 and the custom interactions you have in this project. The path forward would be to use a custom slider library like splidejs or swiperjs to do the gallery instead of this component.