G
Garrett Smith
How can I prevent the document from zooming and scrolling in Palm Pre?
Testing using the Palm Pre Emulator 1.2[1] for Windows, running the Web
Browser:
Mozilla/5.0 (webOS/1.2; U; en-US)
AppleWebKit/525.27.1 (KHTML, like Gecko)
Version/1.0 Safari/525.27.1 Desktop/1.0
The actual device, which unfortunately I do not have, is touch screen;
its "pointing device" is the user's finger. The web browser is basically
Webkit, with some extra stuff.
The emulator runs on VirtualBox and apparently translates the cursor
pointer, from my computer, to what the touchscreen would recognize as a
finger or "touch".
FWICT, there are no "touch" events in Palm Pre's browser; the finger is
treated as a mouse.
The difficulty I am having is that mousedown + mousemove (a drag) causes
the document to scroll. This is apparently some sort of default action,
as in iPhone, but in iPhone it can be prevented by preventDefault.
I've tried return false and preventDefault, but the document scrolls and
zooms. I suspect that preventing this is either not possible or that
there is another way to do it.
How can I prevent the document from zooming and scrolling in Palm Pre?
[1]http://developer.palm.com/
Testing using the Palm Pre Emulator 1.2[1] for Windows, running the Web
Browser:
Mozilla/5.0 (webOS/1.2; U; en-US)
AppleWebKit/525.27.1 (KHTML, like Gecko)
Version/1.0 Safari/525.27.1 Desktop/1.0
The actual device, which unfortunately I do not have, is touch screen;
its "pointing device" is the user's finger. The web browser is basically
Webkit, with some extra stuff.
The emulator runs on VirtualBox and apparently translates the cursor
pointer, from my computer, to what the touchscreen would recognize as a
finger or "touch".
FWICT, there are no "touch" events in Palm Pre's browser; the finger is
treated as a mouse.
The difficulty I am having is that mousedown + mousemove (a drag) causes
the document to scroll. This is apparently some sort of default action,
as in iPhone, but in iPhone it can be prevented by preventDefault.
I've tried return false and preventDefault, but the document scrolls and
zooms. I suspect that preventing this is either not possible or that
there is another way to do it.
How can I prevent the document from zooming and scrolling in Palm Pre?
[1]http://developer.palm.com/