Hi there, I'm developing a tablet (android/iOS) app, but at the start I'm testing only on Mobile Web since it is a small thing, it's faster to compile and I can see the console log.
The code it's pretty simple, my objectve is to create 2 side menus (width:250 each) and hide them (exemple: leftMenuView.left = -250 to side in animation to leftMenuView.left = 0)
But there is a small problem, I can't find where I'm wrong in this, the left and right menu functions are almost the same, the only thing that changes it's the variables names and the side that I'm adding new values (for the leftMenuView it's left property and for the rightMenu it's right)
The issue is on the right menu (the left menu it's perfect for what I need), on the right menu, in the (window)touchend event if the menu it's partly open I call a function to open/close that menu, depends on how much space is visible on screen.
Any of the functions on the right side do not run, but on the left side it's all ok.
View: https://github.com/RicardoJCP/slide_project/blob/master/app/views/index.xml
Controller: https://github.com/RicardoJCP/slide_project/blob/master/app/controllers/index.js