trackpad

package
v0.0.0-...-683b059 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2022 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Overview

Package trackpad provides helper functions to simulate trackpad events.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Swipe

func Swipe(ctx context.Context, tconn *chrome.TestConn, tpw *input.TrackpadEventWriter, swipeDirection SwipeDirection, touches int) error

Swipe performs a swipe movement in the indicated direction with given number of touches.

func TurnOffReverseScroll

func TurnOffReverseScroll(ctx context.Context, tconn *chrome.TestConn) error

TurnOffReverseScroll turns off the reverse scrolling for trackpad.

func TurnOnReverseScroll

func TurnOnReverseScroll(ctx context.Context, tconn *chrome.TestConn) error

TurnOnReverseScroll turns on the reverse scrolling for trackpad.

Types

type SwipeDirection

type SwipeDirection int

SwipeDirection represents the swipe direction.

const (
	UpSwipe SwipeDirection = iota
	DownSwipe
	LeftSwipe
	RightSwipe
)

Variables used to determine the swipe direction.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL