From 3d1b0e2724b5e1a26ec55c70745da7d7c2fe1388 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Fri, 16 Apr 2021 11:27:08 -0400 Subject: [PATCH] Apply onmouseup/down to other ptz buttons --- .../classic/includes/control_functions.php | 28 +++++++------------ 1 file changed, 10 insertions(+), 18 deletions(-) diff --git a/web/skins/classic/includes/control_functions.php b/web/skins/classic/includes/control_functions.php index 877563664..928252c7e 100644 --- a/web/skins/classic/includes/control_functions.php +++ b/web/skins/classic/includes/control_functions.php @@ -121,29 +121,21 @@ function controlPanTilt($monitor, $cmds) { $hasPan = $control->CanPan(); $hasTilt = $control->CanTilt(); $hasDiag = $hasPan && $hasTilt && $control->CanMoveDiag(); + $cmd = $control->CanMoveCon() ? 'data-on-mousedown="controlCmd" data-on-mouseup="controlCmd" ' : 'data-on-click="controlCmd" '; ?> - - - - + + + + - + - - - - + + + +