il resize del canto aggiorna anche il viewer

This commit is contained in:
Luca Trupiano 2023-01-30 17:59:37 +01:00
parent af2a8dd3f8
commit af6ad62c52
2 changed files with 9 additions and 1 deletions

View File

@ -5,6 +5,7 @@
var resetResult; var resetResult;
var lsid; var lsid;
var getDimDiv;
$(document).ready(function() { $(document).ready(function() {
@ -480,6 +481,10 @@ $(" .Ma, .Co, .Su, .Pa").hover(function(idx, element) {
minimapContent.style.float = 'right'; minimapContent.style.float = 'right';
} }
getDimDiv = function(){
getDimensionsDiv();
}
function trackScroll() { function trackScroll() {
//console.log(window.scrollY) //console.log(window.scrollY)
viewer.style.transform = `translateY(${window.scrollY * realScale}px)` viewer.style.transform = `translateY(${window.scrollY * realScale}px)`

View File

@ -110,7 +110,10 @@ $(document).ready(function() {
$(".visCanto").resizable({ $(".visCanto").resizable({
handles: "s", handles: "s",
minHeight: 80, minHeight: 80,
maxHeight: 900, maxHeight: 800,
resize: function(event, ui) {
getDimDiv();
},
stop: function(event, ui) { stop: function(event, ui) {
ui.element.width(""); ui.element.width("");
} }