We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
if img.src changes,wheelzoom is not work.
The text was updated successfully, but these errors were encountered:
Well, I found the solution. like this,
var i = 0; var images; function load() { images = wheelzoom(document.querySelectorAll('img'), {zoom: 0.1, maxZoom: 10}); } function change(){ triggerEvent(images[0], 'wheelzoom.reset'); triggerEvent(images[0], 'wheelzoom.destroy'); if(i % 2 == 1){ document.getElementById('img1').src="./img/img1.jpg"; }else{ document.getElementById('img1').src="./img/img2.jpg"; } wheelzoom(document.querySelectorAll('img'), {zoom: 0.1, maxZoom: 10}); i++; }
Sorry, something went wrong.
Even drag is not working once src has changed
function singleImageSelector(THIS) { singleImage.src = THIS.src; //--- wheelzoom var images = wheelzoom(document.getElementById("idImgSingleImage"), {zoom: 0.1, maxZoom: 20}) }
if loaded just change the background url in the style not the src attribute
No branches or pull requests
if img.src changes,wheelzoom is not work.
The text was updated successfully, but these errors were encountered: