I have a page that shows some photos. My users can not save the photos.
My solution to not save is disable browser context menu, works like a charm at all browsers, but doesn't works IE browser at Window Phone. When I touch and hold image, the native Windows Phone context menu appears to save or share.
I have tried with CSS
.img-disable-save{
-webkit-touch-callout: none !important;
-webkit-user-select: none !important;
-khtml-user-select: none !important;
-moz-user-select: none !important;
-ms-user-select: none !important;
user-select: none !important;
touch-action: none !important;
}
I have tried with Javascript, like this MSDN DOC
// Disables visual
element.addEventListener("MSHoldVisual", function(e) { e.preventDefault(); }, false);
// Disables menu
element.addEventListener("contextmenu", function(e) { e.preventDefault(); }, false);
And finally, I have tried like this post Disabling the context menu on long taps
Really, nothing works ;-(.
I don't know what to do now, my options finished. This only happens at Windows Phone.
Somebody can help me?