Since there is no such possibility by default, you can use the following crutches:
1. Install StrokeIt 2. Import a very basic set (close tab, forward, backward) from here 3. Well and (optional) turn on the work of gestures only in the necessary applications 4. Further customization - as you please, in the image and likeness of the imported actions