shanky-gupta / android-multitouch-controller

Automatically exported from code.google.com/p/android-multitouch-controller
1 stars 0 forks source link

Req: Snap to allow rotate/resize, but not both #9

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Mickael Despesse's suggestion:

I had another idea to improve MultitouchControler yesterday, I don't know if 
you think the right place to implement it is in your controler or in user's 
code, but as this controler is a helper, it could make sense. Now that there is 
rotation management, if user wants to use it, there is one drawack : as soon as 
there are 2 fingers down, scale and rotation are enabled at the same time. 
Let's say the user just wants to resize an object, it's very difficult 
(/impossible) without rotating it a little bit. What could be done is to set a 
minimum angle offset before we start applying rotation to PositionAndScale 
object (the same could also be done for moving/rezing, as in the android home : 
it starts moving from one desktop screen to another only if finger moved more 
than ViewConfiguration.getTouchSlop() pixels).

Original issue reported on code.google.com by luke.hutch on 22 Apr 2012 at 4:49