I am developing an iOS app using PhoneGap, and I have encountered a problem where the window cannot be moved due to the code
document.addEventListener("touchmove", preventBehavior, false);
Although this code prevents the window from moving, it also stops me from using the CSS property overflow:scroll
on a specific section of text.
Is there a workaround that allows both functionalities to work together? Can I load the CSS after the JS to override it, or apply the
document.addEventListener("touchmove", preventBehavior, false);
specifically to the body without affecting its content?