this post was submitted on 02 Jul 2023
1 points (100.0% liked)

Firefox Browser (Linux und Android)

528 readers
1 users here now

Der Browser Firefox von Mozilla (Linux und Android)

founded 2 years ago
MODERATORS
 

I have created my own context menu and want to disable the standard menu when someone long press on a link. The following work's on Firefox Desktop and Chromium Desktop/Android, but not on Firefox Android:

window.addEventListener('contextmenu', function (e) {
  e.preventDefault();
  e.stopPropagation();
  console.log('test');
  return false;
}, false);

On Firefox Android the context menu is displayed also with the above code present. The code however is executed.

Is this a bug?

no comments (yet)
sorted by: hot top controversial new old
there doesn't seem to be anything here