sexytopo icon indicating copy to clipboard operation
sexytopo copied to clipboard

Two finger drag to pan

Open goatchurchprime opened this issue 7 years ago • 2 comments

The pinch to zoom works even in drawing mode, so why can't you use the two finger detection here to drag as well as zoom at the same time. Google maps has it, so it can't be that awful an interface

goatchurchprime avatar Feb 03 '18 18:02 goatchurchprime

It's a good idea and I just experimented with adding it but it's fairly difficult to do. I'm using Android's tools to detect pinch-to-zoom and that seems to pick up all multi-finger gestures. Trying to separate out zooms from drags is non-trivial. May look at this again in the future.

richsmith avatar Feb 04 '18 21:02 richsmith

Your pinch zoom is already centred in the middle of the line between the two touch points and works in the drawing mode. If you allow this focus point to be translated to the middle of the two touch points that you have dragged to, then you have the feature. ie it becomes just part of the pinch-zoom and not a new mode.

goatchurchprime avatar Feb 05 '18 10:02 goatchurchprime

I've added this. It's a bit jerky, so I might look at it again and see if I can improve it, but I think it's useful.

richsmith avatar Aug 12 '23 19:08 richsmith