Added check for rotation by narrow distance between touch points.
This commit is contained in:
+5
-2
@@ -131,15 +131,17 @@ export class InteractionDelta {
|
||||
* @param {*} rotate
|
||||
* @param {*} about
|
||||
* @param {*} number - number of involved pointer
|
||||
* @param {*} distance - distance of farthests touch points
|
||||
* @memberof InteractionDelta
|
||||
*/
|
||||
constructor(x, y, zoom, rotate, about, number) {
|
||||
constructor(x, y, zoom, rotate, about, number, distance) {
|
||||
this.x = x
|
||||
this.y = y
|
||||
this.zoom = zoom
|
||||
this.rotate = rotate
|
||||
this.about = about
|
||||
this.number = number
|
||||
this.distance = distance
|
||||
}
|
||||
|
||||
toString() {
|
||||
@@ -235,7 +237,8 @@ export class InteractionPoints {
|
||||
zoom,
|
||||
alpha,
|
||||
cm,
|
||||
csize
|
||||
csize,
|
||||
distance2
|
||||
)
|
||||
} else if (
|
||||
csize == 1 &&
|
||||
|
||||
Reference in New Issue
Block a user