Om de ûnderfining foar jo te ferbetterjen is tydlik de funksjonaliteit dan dizze website troch ûnderhâldswurk beheind. Wannear in artikel jo probleem net oplost en jo in fraach stelle wolle, kin ús stipemienskip jo helpe yn @FirefoxSupport op Twitter en /r/firefox op Reddit.

Sykje yn Support

Mij stipescams. Wy sille jo nea freegje in telefoannûmer te beljen, der in sms nei ta te stjoeren of persoanlike gegevens te dielen. Meld fertochte aktiviteit mei de opsje ‘Misbrûk melde’.

Mear ynfo

Dizze konversaasje is argivearre. Stel in nije fraach as jo help nedich hawwe.

How do I prevent a long press from bringing up the context menu when using a touch screen?

  • 2 antwurd
  • 1 hat dit probleem
  • 65 werjeftes
  • Lêste antwurd fan JonEmagine

more options

Hello, I'm working for a web based POS software company. We normally run our software in Chrome, but use Firefox (v47.0.1, in Windows POS Ready 7, no Add-ons) at about 40 locations because it has solved some weird issues that have come up at those sites (Web Socket disconnect, elements stop showing up on 3rd party hosted pages, etc...). Just had this issue brought to my attention today, and I can't seem to figure out which config setting I need to change. When I press and hold on a menu item, it is bringing up the context menu. Normally our software will open a pop-up window so you could edit or 86 the menu item from this pop-up menu. If I am using a mouse, the behavior works the way it should (left click and hold opens the pop-up menu). I thought this had something to do with "ui.click_hold_context_menus", but I'm still having the same issue when changing the value on this setting.

Hello, I'm working for a web based POS software company. We normally run our software in Chrome, but use Firefox (v47.0.1, in Windows POS Ready 7, no Add-ons) at about 40 locations because it has solved some weird issues that have come up at those sites (Web Socket disconnect, elements stop showing up on 3rd party hosted pages, etc...). Just had this issue brought to my attention today, and I can't seem to figure out which config setting I need to change. When I press and hold on a menu item, it is bringing up the context menu. Normally our software will open a pop-up window so you could edit or 86 the menu item from this pop-up menu. If I am using a mouse, the behavior works the way it should (left click and hold opens the pop-up menu). I thought this had something to do with "ui.click_hold_context_menus", but I'm still having the same issue when changing the value on this setting.

Keazen oplossing

Hmm, by default, Firefox lets sites override the built-in context menu using the document.oncontextmenu/window.oncontextmenu event. That works with the mouse on desktop and with touch on Android. I don't have a desktop computer with touch to test, but I would expect that to work.

There is a preference to override that behavior so that Firefox's context menu always appears (often in front of the site's context menu): set "dom.event.contextmenu.enabled" to false. However, it seems unlikely you would have toggled that on your systems.

As far as I know, the "ui.click_hold_context_menus" preference is only for Mac users (to address something related to the single mouse button), so that could explain why it makes no difference to the behavior you're describing.

Dit antwurd yn kontekst lêze 👍 0

Alle antwurden (2)

more options

Keazen oplossing

Hmm, by default, Firefox lets sites override the built-in context menu using the document.oncontextmenu/window.oncontextmenu event. That works with the mouse on desktop and with touch on Android. I don't have a desktop computer with touch to test, but I would expect that to work.

There is a preference to override that behavior so that Firefox's context menu always appears (often in front of the site's context menu): set "dom.event.contextmenu.enabled" to false. However, it seems unlikely you would have toggled that on your systems.

As far as I know, the "ui.click_hold_context_menus" preference is only for Mac users (to address something related to the single mouse button), so that could explain why it makes no difference to the behavior you're describing.

more options

Thanks for your suggestion, jscher2000! Is document.oncontextmenu/window.oncontextmenu event set in the site's code? Unfortunately I don't have access to the code, but can forward this suggestion to our programmers. After my post, I tried changing the value of "ui.click_hold_context_menus" to false, but no luck there either.