Open
Description
Hi,
I am using latest version of domtoimage and it works fine everywhere except iPhone. You can check it here on the live site https://www.thecanvasprints.co.uk/canvas?action=upload if you upload the image and click Add to Cart, it should open the preview in a popup. The preview open code is this;
var node = document.getElementById("canvasImageWrapper");
domtoimage.toPng(node, {
width: node.offsetWidth,
height: node.offsetHeight
})
.then((dataurl) => {
$("#previewModal .modal-title").text("Preview")
$("#previewModal .alert-info").show()
$("#custom-size-form").hide()
$(".modal-content1 #previewImage").show()
$("#preview-btn-cont.modal-footer").show()
$("#custom-btn-cont.modal-footer").hide()
return dataurl;
})
The preview works fine in all browsers except if you check it on actual iPhone. It works fine if you view in chrome in iPhone mode but don't work on actual iPhone.
Please help.
Metadata
Metadata
Assignees
Labels
No labels