this is more a feature request then an issue.
If you could add those lines of code at the end of the function updateBgStyle everyone could
listen to it and have the updated values at hand for further calculations.
var bgStyle = { "width": width, "height": height, "bgWidth": bgWidth, "bgHeight": bgHeight, "bgPosX": bgPosX, "bgPosY": bgPosY }; var event = new CustomEvent("wheelZoomUpdatedBgStyle", {detail: bgStyle}); document.dispatchEvent(event);
Thanks and keep on doing what you do :) It is a nice piece of code.
Hi Jack,
this is more a feature request then an issue. If you could add those lines of code at the end of the function updateBgStyle everyone could listen to it and have the updated values at hand for further calculations.
var bgStyle = { "width": width, "height": height, "bgWidth": bgWidth, "bgHeight": bgHeight, "bgPosX": bgPosX, "bgPosY": bgPosY }; var event = new CustomEvent("wheelZoomUpdatedBgStyle", {detail: bgStyle}); document.dispatchEvent(event);
Thanks and keep on doing what you do :) It is a nice piece of code.
best, ND