By default left/right swipe on touch screens causes Chromium engine to navigate back/forward. To disable this default behavior use the --overscroll-history-navigation=0 Chromium switcher as shown in the following example:

import com.teamdev.jxbrowser.chromium.Browser;
import com.teamdev.jxbrowser.chromium.BrowserPreferences;
import com.teamdev.jxbrowser.chromium.swing.BrowserView;

import javax.swing.*;
import java.awt.*;

public class BrowserSample {
    public static void main(String[] args) {
        // Disables back/forward on left/right swipe on touch screens.
        BrowserPreferences.setChromiumSwitches("--overscroll-history-navigation=0");

        Browser browser = new Browser();
        BrowserView view = new BrowserView(browser);

        JFrame frame = new JFrame();
        frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
        frame.add(view, BorderLayout.CENTER);
        frame.setSize(700, 500);
        frame.setLocationRelativeTo(null);
        frame.setVisible(true);

        browser.loadURL("http://google.com");
    }
}