Mouse/Trackpad Right Click does not work in MatLab

When BetterTouch is enabled then Mouse/Trackpad RightClick stops working in Matlab (R2018b and before)
i.e. when I rightClick - nothing happens.
In other applications everything works perfectly.
When I disable BetterTouch then RightClick works in Matlab as well.

Affected input device (e.g. MacBook Trackpad, Magic Mouse/Trackpad, Touch Bar, etc.):
MacBook Pro Trackpad / Logitech M705 mouse

Device information:

  • Type of Mac: MacBook Pro 2017
  • macOS version: Mojave 10.14.1
  • BetterTouchTool version: 2.685 (990)