mirror of
https://github.com/SrIzan10/vdo.ninja.git
synced 2026-05-01 11:05:24 +00:00
minor fix for the ptz example app
This commit is contained in:
@@ -45,6 +45,7 @@ button{
|
||||
border:0;
|
||||
margin-top:min(10px, 1vh);
|
||||
padding:min(10px, 1vh);
|
||||
cursor:pointer;
|
||||
}
|
||||
|
||||
span {
|
||||
@@ -89,12 +90,12 @@ var iframe;
|
||||
function panleft(){
|
||||
if (iframe){
|
||||
console.log("PAN 1");
|
||||
iframe.contentWindow.postMessage({"sendRequest":{pan:1}}, '*');
|
||||
iframe.contentWindow.postMessage({"sendRequest":{pan:-1}}, '*');
|
||||
}
|
||||
}
|
||||
function panright(){
|
||||
if (iframe){
|
||||
iframe.contentWindow.postMessage({"sendRequest":{pan:-1}}, '*');
|
||||
iframe.contentWindow.postMessage({"sendRequest":{pan:1}}, '*');
|
||||
}
|
||||
}
|
||||
function tiltup(){
|
||||
|
||||
Reference in New Issue
Block a user