|
|
Quellcode |
1 |
<control zoomtocursor="true" zoomoutcursor="true" /> |
HI there Klaus,Hi,
sorry, but I can't analyze or debug your code, but here attached the original mwheel-touch-zooming.xml extended with some code for dragging:
index.php?page=Attachment&attachmentID=2167
Best regards,
Klaus
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »zakato360« (16. Mai 2020, 12:22)
I am having the same issue, has anyone been able to find a solution?Finding the same problem here too with v1.19 working fine, v1.20 pinch zoom on macbook trackpad not working as per zakato360's code.
Hopefully Klaus will know what's causing this?
Thanks in advance!
Quoted from "Alexander360"
Finding the same problem here too with v1.19 working fine, v1.20 pinch zoom on macbook trackpad not working as per zakato360's code.
Hopefully Klaus will know what's causing this?
I have just tested with the latest 1.20.9 release and the problem is still the same with mac book track pad not working correctly (or at all) to pinch zoom or 2 finger scroll on an image layer.Thanks in advance!
I am having the same issue, has anyone been able to find a solution?
I think I've found a workaround for anyone with this problem. By adding an if statement to check it the device is a mac, this seems to do the trick:Quoted from "Alexander360"
Finding the same problem here too with v1.19 working fine, v1.20 pinch zoom on macbook trackpad not working as per zakato360's code.Hopefully Klaus will know what's causing this?I have just tested with the latest 1.20.9 release and the problem is still the same with mac book track pad not working correctly (or at all) to pinch zoom or 2 finger scroll on an image layer.Thanks in advance!
I am having the same issue, has anyone been able to find a solution?
Any ideas? Klaus, is this something that could be fixed?
Thanks as always!
|
|
Quellcode |
1 2 3 4 5 |
<!-- the action for zooming either via the mouse wheel for via touch gestures --> <action name="image_onmousewheel"> if(iszoom, <!-- THE WORKAROUND --> if(!device.mac, if(wheeldelta_touchscale GT 0, <!-- touch zoom --> if(startzoom, set(startzoom,false); copy(start_wheeldelta_touchscale, wheeldelta_touchscale); copy(start_imagescale, layer[image].scale); ); div(tmp, wheeldelta_touchscale, start_wheeldelta_touchscale); mul(layer[image].scale, start_imagescale, tmp); ); , <!-- mouse wheel zoom --> mul(sit,get(wheeldelta),0.05); mul(sit,layer[image].scale); add(layer[image].scale,sit); ); ); </action> |
I am trying to make it work on 1.21. But no success. On 1.19. is working great. What should I tweak? Thanks in advanceHi,
here's an example:
https://krpano.com/examples/118/examples…ch-zooming.html
xml:
https://krpano.com/examples/118/examples/xml-usage/image-mwheel-touch-zooming/mwheel-touch-zooming.xml
It uses the onmousewheel event (which will be called also on touch devices on gesture zooms) and
touch devices the wheeldelta_touchscale variable for getting a scale value related to the zooming-gesture.
Best regards,
Klaus