I test image-mwheel-touch-zooming example on andriod phone,and other two different type andriod phone,neither work。
I found when myfinger ondown image layer,wheeldelta_touchscale always be 0.0,that means andriod phone do not received any touchzoom at that moment,then i add capture.android="false" and some limitview code。
Code
<layer name="image" url="image1.jpg" scale="1.0" align="center" edge="center" capture.android="false"
onover="
set(iszoom, true);
set(startzoom, true);
copy(copy_mousefovchange, control.mousefovchange);
copy(copy_touchzoom, control.touchzoom);
set(control.mousefovchange, 0);
set(control.touchzoom, false);
if(device.android,
copy(view.hlookatmin,view.hlookat);
copy(view.hlookatmax,view.hlookat);
copy(view.vlookatmin,view.vlookat);
copy(view.vlookatmax,view.vlookat);
set(view.limitview,lookat);
);
"
onout="
set(iszoom, false);
copy(control.mousefovchange, copy_mousefovchange);
copy(control.touchzoom, copy_touchzoom);
if(device.android,
set(view.hlookatmin,'NULL');
set(view.hlookatmax,'NULL');
set(view.vlookatmin,'NULL');
set(view.vlookatmax,'NULL');
set(view.limitview,auto);
);
"
ondown.touch="onover();"
onup.touch="onout();"
/>
Alles anzeigen