0

I have this code here:

var t

$('#camera').on("touchstart", function(e) {
    event.preventDefault();
    t = setTimeout(function(){ $("#filters").addClass("reveal-filters"); }, 1000);   
});

$('#camera').on("touchend", function(e) {
    clearTimeout(t);   
});

I've successfully disabled the context menu but how can I remove this black box that appears in chrome when you touch and hold?

circle represent tap-hold

Thanks

user2517605
  • 225
  • 1
  • 2
  • 15

1 Answers1

0

I found those articles useful:

Unfortunately, the event "MSHoldVisual" seems only to be supported on Edge/IE, I couldn't find a similar thing for Chrome.

ptahmose
  • 117
  • 3