Firefox 3.1 beta 2 brought with it a nice new feature: support for multitouch gestures (the ones available from the new unibody trackpad). Some of these features are awesome, swipe to go forward/back and rotate to change tabs, the others are more annoying than helpful.
It turns out there is a simple way to change these gestures. If you steer your browser to about:config and filter for the word gesture you can see all the settings for the gestures.
Available gestures are:
browser.gesture.pinch.in
browser.gesture.pinch.out
browser.gesture.swipe.up
browser.gesture.swipe.down
browser.gesture.swipe.left
browser.gesture.swipe.right
browser.gesture.twist.left
browser.gesture.twist.right
Any of the gestures can be captured with modifiers (all but cmd seem to work)
browser.gesture.pinch.in.shift
There are also two settings that are available for the pinch and twist gestures.
The latched command dictates whether the command is continuously sent or only set once (e.g. if you twist will the command keep running till you stop or just run once). This is useful for preventing the continuous closing of tabs. It has a boolean value.
browser.gesture.pinch.latched
browser.gesture.swipe.latched
The second setting is threshold. This setting says how far you have to do the gesture for it to register, tweak it to your preference. It has an integer value.
browser.gesture.twist.threshold
browser.gesture.pinch.threshold
There are quite a few values the gestures can be mapped to. A full list of the built in commands is available here, this is as complete a list as I could find. Some of the functions which are more interesting are:
-
cmd_newNavigatorTab - opens new tab
-
cmd_close - closes tab
-
Browser:AddBookmarkAs - adds bookmark and opens interface to add details
-
Browser:Home - Goes to home
-
Browser:BackOrBackDuplicate - goes back or duplicates into new tab or window depending on modifier new
Browser:NextTab
-
Browser:OpenLocation - selects awesomebar (same as cmd L)
-
Tools:PrivateBrowsing - turns on private browsing mode
-
History:UndoCloseTab - opens previously closed tab
Have fun playing with this, let me know what sort of setups you create.