You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I experienced the same problem, that there is no way to update the "width" property of wheelzoom. As a workaround I am using a ResizeObserver on the image element and trigger a fresh init like this:
const obs = new ResizeObserver((entries) => {
entries.forEach((entry) => {
imgElement.src = myImageSource; // my source is a base64 encoded string
imgElement.dispatchEvent(new Event('load'));
});
});
On change of image-size the script needs to recalculate the width/height of the image. Currently the background size stays the same.
A typical usecase is having a responsive image like
max-width: 100%; height: auto;
.The text was updated successfully, but these errors were encountered: