views:

316

answers:

2

I have a web page that is used with mobile devices to take signatures, but the signature component doesn't work well in windows mobile 6. When moving the stylus across the component, the screen will pan.

I have reduced the viewport size using

<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0">

but even though this stops the screen panning, the signature still does not work correctly. I assume that the stylus movements are still being captured for panning and zooming & are not being sent to the activex component.

Is there any way to turn off the panning so that mouse movements are correctly sent to the active-x component?

A test signature screen can be seen here...
http://prague.dynamicselect.co.uk/cctest%5Fengweb/sigtest.asp

+1  A: 

Check out the TKSetWindowAutoGesture function and the corresponding WAGINFO structure which allows you to specify the gesture-handling functionality for a given window handle. You would have to do this from the ActiveX control, not in the HTML obviously.

I don't have a working example as I am not a Windows Mobile developer, but we had a very similar situation with the Tablet PC when trying to accept ink input in an area that was being served by Vista flick gestures.

Josh Einstein
A: 

This works for me on iPhone and Android but unfortunately not the custom HTC android browser. Havent tested on windows mobile.

Garrows