gridviz
gridviz copied to clipboard
Dragging on touch starts too late (ontouchend) β with video
Dragging/Panning the map on a current iPad pro running iOS 16.5.1 I experience the following β even without WMS background layer:
- the map only moves after I am ending the drag with a touch end
Will post a video of the observed behaviour versus the expected one.
Have a look at this 19sec video that demonstrates the issue https://wahlatlas.net/experimente/testcases/gridviz_drag_touch_issue98.mp4
Here's a reduced testcase: https://wahlatlas.net/experimente/testcases/gridviz_issue98.html
The above described unexpected behaviour should be able to be reproduced on an iPad.
However, if I first touch until the tooltip shows and than touch again the same β now highlighted β cell, the drag works as expected
The WebGLStyle doesnβt exhibit the described issue, dragging on touch is instant as it should, see https://wahlatlas.net/experimente/testcases/gridviz_issue98WGLStyle.html
For some reason...
CanvasRenderingContext2D.drawImage()
...updates the canvas during desktop pan events, but not on mobile.
https://github.com/eurostat/gridviz/blob/4fed3151b460f355b2f2528012e48ea709cb1838/src/GeoCanvas.js#L218
I've tried to fix it but no luck so far.
I will keep investigating!