mirror of
https://github.com/nasa/openmct.git
synced 2025-06-16 06:08:11 +00:00
[Mobile] Starting Context
Added check to make sure user is touching only one object. Started contextmenugesture to be long touch, however currently long touch is still infogesture.
This commit is contained in:
@ -103,17 +103,20 @@ define(
|
||||
}
|
||||
|
||||
function showTouchBubble(event) {
|
||||
trackTouchPosition(event);
|
||||
pendingBubble = $timeout(function () {
|
||||
dismissBubble = infoService.display(
|
||||
"info-table",
|
||||
domainObject.getModel().name,
|
||||
domainObject.useCapability('metadata'),
|
||||
touchPosition
|
||||
);
|
||||
}, touchDELAY);
|
||||
// Makes sure user is only touching one place
|
||||
if (event.touches.length < 2) {
|
||||
trackTouchPosition(event);
|
||||
pendingBubble = $timeout(function () {
|
||||
dismissBubble = infoService.display(
|
||||
"info-table",
|
||||
domainObject.getModel().name,
|
||||
domainObject.useCapability('metadata'),
|
||||
touchPosition
|
||||
);
|
||||
}, touchDELAY);
|
||||
|
||||
element.on('touchend', hideBubble);
|
||||
element.on('touchend', hideBubble);
|
||||
}
|
||||
}
|
||||
|
||||
// Checks if you are on a mobile device, if the device is
|
||||
|
Reference in New Issue
Block a user