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