From 3cdbae20cfe8bac3f88ec32ac8ea46b01f0aede7 Mon Sep 17 00:00:00 2001 From: IgorA100 Date: Fri, 3 Jan 2025 13:23:20 +0300 Subject: [PATCH] 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. --- web/skins/classic/views/js/watch.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/web/skins/classic/views/js/watch.js b/web/skins/classic/views/js/watch.js index be84506e3..12a75e3d7 100644 --- a/web/skins/classic/views/js/watch.js +++ b/web/skins/classic/views/js/watch.js @@ -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) {