mirror of
https://github.com/nasa/openmct.git
synced 2025-04-19 08:36:24 +00:00
[Mobile] Gestures
Removed firstTouchPan and use firstTouch for both the pinch and the single touch pan.
This commit is contained in:
parent
8511c957a0
commit
29df378851
@ -46,7 +46,7 @@ define(
|
||||
firstTouches,
|
||||
firstTouch,
|
||||
firstTouchDistance,
|
||||
firstTouchPan,
|
||||
lastTouchDistance,
|
||||
$canvas = $element.find('canvas');
|
||||
|
||||
function updateAxesForCurrentViewport() {
|
||||
@ -348,7 +348,7 @@ define(
|
||||
firstTouches = [trackTouchPosition(touches[0], bounds).positionAsPlotPoint,
|
||||
trackTouchPosition(touches[1], bounds).positionAsPlotPoint];
|
||||
firstTouchDistance = distance;
|
||||
firstTouchPan = trackTouchPosition(midpoint, bounds).positionAsPlotPoint;
|
||||
firstTouch = trackTouchPosition(midpoint, bounds).positionAsPlotPoint;
|
||||
}
|
||||
|
||||
function updatePan(touch, bounds) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user