Changed the method for controlling the visibility of the "#button_zoom" button bar (watch.js)

If we use "slideDown" & "slideUp", then with "display=grid" for the external block, there may be problems,
Perhaps because we also used "display=none" for the button block.
This commit is contained in:
IgorA100
2025-01-03 13:23:20 +03:00
committed by GitHub
parent 08e9fa6548
commit 3cdbae20cf

View File

@@ -842,12 +842,14 @@ function streamPrepareStart(monitor=null) {
function handleMouseEnter(event) {
//Displaying "Scale" and other buttons at the top of the monitor image
const id = stringToNumber(this.id);
$j('#button_zoom' + id).stop(true, true).slideDown('fast');
//$j('#button_zoom' + id).stop(true, true).slideDown('fast');
$j('#button_zoom' + id).removeClass('hidden');
}
function handleMouseLeave(event) {
const id = stringToNumber(this.id);
$j('#button_zoom' + id).stop(true, true).slideUp('fast');
//$j('#button_zoom' + id).stop(true, true).slideUp('fast');
$j('#button_zoom' + id).addClass('hidden');
}
function streamStart(monitor = null) {