Add basic context-menu for actions.

This commit is contained in:
Gunther Brunner
2014-09-25 16:24:57 +09:00
parent c33d95ba7a
commit f705cd60a7
9 changed files with 86 additions and 4 deletions

View File

@@ -393,6 +393,10 @@ module.exports = function DeviceScreenDirective($document, ScalingService,
}
function mouseDownListener(e) {
// Skip secondary click
if (e.which === 3) {
return
}
e.preventDefault()
fakePinch = e.altKey
@@ -433,6 +437,10 @@ module.exports = function DeviceScreenDirective($document, ScalingService,
}
function mouseMoveListener(e) {
// Skip secondary click
if (e.which === 3) {
return
}
e.preventDefault()
var addGhostFinger = !fakePinch && e.altKey
@@ -477,6 +485,10 @@ module.exports = function DeviceScreenDirective($document, ScalingService,
}
function mouseUpListener(e) {
// Skip secondary click
if (e.which === 3) {
return
}
e.preventDefault()
control.touchUp(nextSeq(), 0)