X
Tap here to go to the mobile version of the site.

Support Forum

How can I disable flick gestures in firefox?

Posted

http://stackoverflow.com/questions/36877410/how-can-i-disable-flick-behavior-in-a-browser-chrome-firefox https://github.com/jogonzal/MinimalisticFlickDelayRepro

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.

http://windows.microsoft.com/en-us/windows7/what-are-flicks

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

http://stackoverflow.com/questions/36877410/how-can-i-disable-flick-behavior-in-a-browser-chrome-firefox https://github.com/jogonzal/MinimalisticFlickDelayRepro 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. http://windows.microsoft.com/en-us/windows7/what-are-flicks 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

Installed Plug-ins

  • 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
  • 5.1.41212.0

Application

  • User Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:46.0) Gecko/20100101 Firefox/46.0

More Information

cor-el
  • Top 10 Contributor
  • Moderator
17579 solutions 159042 answers

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.

You can set the related browser.gesture.pinch.* pref(s) to an empty string to disable that action. You can open the <b>about:config</b> page via the location/address bar. You can accept the warning and click "I'll be careful" to continue. *http://kb.mozillazine.org/about:config
jscher2000
  • Top 10 Contributor
8794 solutions 71937 answers

When I search for WM_TABLET in the source code, I don't see any reference to WM_TABLET_FLICK:

https://dxr.mozilla.org/mozilla-central/search?q=WM_TABLET

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:

https://social.msdn.microsoft.com/Forums/windowsdesktop/en-US/8325ddd8-53df-49b7-ad78-525e4005464b/how-to-disableenable-pen-flicks-programatically?forum=tabletandtouch#ed3bd386-5bd4-4706-9a4d-6d4649e75a6b

When I search for WM_TABLET in the source code, I don't see any reference to WM_TABLET_FLICK: https://dxr.mozilla.org/mozilla-central/search?q=WM_TABLET 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: https://social.msdn.microsoft.com/Forums/windowsdesktop/en-US/8325ddd8-53df-49b7-ad78-525e4005464b/how-to-disableenable-pen-flicks-programatically?forum=tabletandtouch#ed3bd386-5bd4-4706-9a4d-6d4649e75a6b