Hey @duynq2197, it really depends oh how your project is set up:
1. If you are reloading a page every time you are trying to navigate the site, then you’ll have to enable this option every time you initialize webix.ui
:
webix.ready(funciton(){
if ( webix.env.touch ){ // if touch device is detected
webix.Touch.limit(true);
};
webix.ui({ ... })
});
Also please note that you should wrap your code inside a webix.ready
method for it to correctly initialize.
2. If you are reloading just a part of the interface, then you will only need to call this method once (please refer to the code above, it will look identical).
Once again, please initialize your code inside a webix.ready
method for the most correct behaviour.