Answer the question
In order to leave comments, you need to log in
Is it possible to zoom in on the image while scrolling with the wheel?
Good day! I wanted to embed a ready-made script to enlarge the image about scrolling with the wheel, but I came across the fact that when you click on the image, a pop-up window appears with the image, and then it is necessary that the scroll script work. In the script of the pop-up window, I inserted the necessary zoom class to increase when scrolling, I connected scripts in the header, but as a result it does not work. As I understand it, not everything is simple here, and is it possible to embed scrolling in a pop-up window?
The pop-up window file cannot be attached, I am attaching a part of the code, I added this zoom class there .
Site with a script to increase the wheel
window.JCCatalogElement.prototype.showMainPictPopup = function(e)
{
var pictContent = '';
pictContent = '<div style="text-align: center;"><img class="zoom" src="'+
this.currentImg.src+
'" width="'+this.currentImg.width+'" height="'+this.currentImg.height+'" name=""></div>';
this.obPopupPict.setContent(pictContent);
this.obPopupPict.show();
return BX.PreventDefault(e);
};
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question