mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-26 15:55:31 +02:00
Add basic context-menu for actions.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user