mirror of
https://github.com/scratchfoundation/Gestouch.git
synced 2025-02-16 23:40:14 -05:00
Small optimization for PanGesture
This commit is contained in:
parent
d950550d16
commit
3e1b5948b2
1 changed files with 1 additions and 1 deletions
|
@ -150,7 +150,7 @@ package org.gestouch.gestures
|
|||
offsetY = _location.y - prevLocationY;
|
||||
// Unfortunately we create several new point instances here,
|
||||
// but thats not a big deal since this code executed only once per recognition session
|
||||
var offset:Point = new Point(_location.x - prevLocationX, _location.y - prevLocationY);
|
||||
var offset:Point = new Point(offsetX, offsetY);
|
||||
if (offset.length > slop)
|
||||
{
|
||||
var slopVector:Point = offset.clone();
|
||||
|
|
Loading…
Reference in a new issue