How can I disable flick gestures in firefox?
Hello firefox experts,
Flicks are gestures that can be triggered with a stylus or finger to go back, forward, scroll down or up in an app in windows.
In my web app, I am using an HTML5 canvas to capture mouse events to draw. In a Microsoft Surface (where flicks are enabled), because of flicks, the mousedown event is delayed and several mousemoves plain ignored and not transferred to the web app. Furthermore, sometimes, the user goes back/forward/scrolls up/down because of the flick actions.
Here's a repro/description/screenshot/proposed fix of this issue: https://github.com/jogonzal/MinimalisticFlickDelayRepro
Additional System Details
- Google Update
- Intel web components updater - Installs and updates the Intel web components
- Intel web components for Intel® Identity Protection Technology
- The plugin allows you to have a better experience with Microsoft Lync
- The plugin allows you to have a better experience with Microsoft SharePoint
- User Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:46.0) Gecko/20100101 Firefox/46.0
You can set the related browser.gesture.pinch.* pref(s) to an empty string to disable that action.
You can open the about:config page via the location/address bar. You can accept the warning and click "I'll be careful" to continue.
When I search for WM_TABLET in the source code, I don't see any reference to WM_TABLET_FLICK:
So Firefox may be ignoring that message, and subsequently receiving WM_APPCOMMAND, WM_VSCROLL, or WM_KEYDOWN as mentioned in the Microsoft documentation. I'm not sure whether Firefox can distinguish that these were caused by pen input on a canvas, but I didn't dig into them in detail. Perhaps it gets at least the screen coordinates.
The question from Alex back in 2009 seems to echo the issue raised by your question: