I am using html2canvas library, for take photo and download photo. But I see following code preventing my webpage going down. Like “window.scrollBy(0, 500);” related all code not working.
var element = $("#html-content-holder"); // global variable
var getCanvas; //global variable
html2canvas(element, {
onrendered: function (canvas) {
getCanvas = canvas;
}
});
I see when i fired above code my web page going top. But i need to go down of the page. Is there any way to avoid page going top or after going top again go down.
I need “Take picture” button click webpage need to go down to see picture. But my webpage going top when i click button. i see by remove above code “window.scrollBy(0, 500);” working fine. But i need above code to download picture. is there any way to avoid scroll to by use above code.