Hi Klaus,
I'm working on a project that uses wheeldelta values.
The project works on the three devices listed below.
- Desktop with mouse
- Desktop with touch device
- Mobile
There was no problem until version 1.20.11 of krpano.
1. When using a touch device, if the version of krpano is 1.21, the sign of the wheeldelta value is reversed.
2. When the version of krpano is 1.21, the desktop cannot detect the touch device.
The code to test is written as below.
<krpano version="1.20.11"
title="Virtual Tour"
logkey="true"
debugmode="true"
>
<events name="test_events"
keep="true"
onmousewheel="test_onmousewheel()"
/>
<action name="test_onmousewheel">
trace('wheeldelta=', get(wheeldelta), ', wheeldelta_raw=', get(wheeldelta_raw), ', wheeldelta_touchscale=', get(wheeldelta_touchscale), ', device.touch=', get(device.touch));
</action>
<preview type="grid(cube,32,32,512,0xCCCCCC,0xFFFFFF,0x999999);" />
</krpano>
Display More
The image below is the log of the zoom in operation when the krpano version is 1.20.11.
The code above was tested on a desktop with a touch device.
The image below is the log of the zoom out operation when the krpano version is 1.20.11.
The code above was tested on a desktop with a touch device.
The image below is the log of the zoom in operation when the krpano version is 1.21.
The code above was tested on a desktop with a touch device.
The image below is the log of the zoom out operation when the krpano version is 1.21.
The code above was tested on a desktop with a touch device.
wheeldelta example in krpano 1.20.11
wheeldelta example in krpano 1.21
Refer to the image below for the touch device installed on the desktop.