--touch-slop-distance
What does --touch-slop-distance do?
Overrides touch slop distance for gesture detection. The touch slop distance is the maximum distance from the starting point of a touch sequence that a gesture can travel before it can no longer be considered a tap. Scroll gestures can only begin after this distance has been travelled. The switch value is a floating point number that is interpreted as a distance in pixels.
Usage
CLILaunch Chrome with --touch-slop-distance using CLI
chrome --touch-slop-distancePuppeteerLaunch Chrome with --touch-slop-distance using Puppeteer
const browser = await puppeteer.launch({
args: ['--touch-slop-distance']
});PlaywrightLaunch Chrome with --touch-slop-distance using Playwright
const browser = await chromium.launch({
args: ['--touch-slop-distance']
});SeleniumLaunch Chrome with --touch-slop-distance using Selenium
from selenium import webdriver
options = webdriver.ChromeOptions()
options.add_argument('--touch-slop-distance')
driver = webdriver.Chrome(options=options)