I need to disable the default drag & drop (and selection) on my HTML.
I try in first time: user-select: none; pointer-events: none;
in CSS.
It's works, but my click event javascript are disabled too... (and I need it)
so, is there a better solution that replace pointer-events: none;
by
$document.on("dragstart", 'img', function(e) { e.preventDefault(); });
Can we do it in CSS only?
thx.