should work for the right resolution. (By the way. For a web app you have to use 640 x 920 for Iphones)
It doesn't matter if you convert it with phonegap. Still's just a web app but into the I Store (if apple take it)
Seccond
PHP Code:
document.ontouchstart=document.onmousedown=preventer; function preventer(e){ if(!e){e=window.event;} e.preventDefault();
Thank you very much for clarifying this simple fact that some lines of the code are not js, I made an assumption that whatever is not apparent html, it must be js
I have tried the following css
Code:
<style> html, body {overflow: hidden;}
</style>
and it does remove the vertical scrolling bar from the browser.
I have done the adjustments to the code and run an android simulator, and there seems to be no change. Here's what I typed in:
If you just want to prevent dragging then this might work:
Code:
document.ontouchmove = function (e) {
e.preventDefault();
};
..but I don't program for phones myself.
__________________
"I'm here to save your life. But if I'm going to do that, I'll need total uninanonynymity." Me Myself & Irene.
Validate your HTML and CSS
If you want to continue to allow dragging of specific elements then it might be something like this:
Code:
document.ontouchmove = function (e) {
var target = e.currentTarget;
if (target.nodeName == 'IMG') {
// or examine ID, etc..
return;
}
e.preventDefault();
};
but, again, I'm not mobile
__________________
"I'm here to save your life. But if I'm going to do that, I'll need total uninanonynymity." Me Myself & Irene.
Validate your HTML and CSS