Fix Right Click on Track bad not working [#Ubuntu]

Just finish installing Ubuntu on Xiaomi Book Air 12 and noticed that the Track bad had a small issue that the right click not working unless you double tab the track bad.

Solving the issue is so easy and mentioned many times for same problem with same track bad in other brands.

To Solve it Follow these steps:

1- Open terminal and copy and paste :

sudo gedit /usr/share/X11/xorg.conf.d/50-synaptics.conf

2- Search for this code:

# This option enables the bottom right corner to be a right button on clickpads
# and the right and middle top areas to be right / middle buttons on clickpads
# with a top button area.
# This option is only interpreted by clickpads.
Section "InputClass"
Identifier "Default clickpad buttons"
MatchDriver "synaptics"
Option "SoftButtonAreas" "50% 0 82% 0 0 0 0 0"
Option "SecondarySoftButtonAreas" "58% 0 0 15% 42% 58% 0 15%"
EndSection

3- Before Option "SoftButtonAreas" "50% 0 82% 0 0 0 0 0"

Add this code:

     Option "ClickPad"         "true"
Option "EmulateMidButtonTime" "0"

4- Now the code will be like this:

# This option enables the bottom right corner to be a right button on clickpads
# and the right and middle top areas to be right / middle buttons on clickpads
# with a top button area.
# This option is only interpreted by clickpads.
Section "InputClass"
Identifier "Default clickpad buttons"
MatchDriver "synaptics"
Option "ClickPad" "true"
Option "EmulateMidButtonTime" "0"

Option "SoftButtonAreas" "50% 0 82% 0 0 0 0 0"
Option "SecondarySoftButtonAreas" "58% 0 0 15% 42% 58% 0 15%"
EndSection

# Ref [AskUbuntu]