Skip to content

omitzero caused DispatchTouchEventParams with multiple touchPoints execution failed #30

@guo1017138

Description

@guo1017138

Error Message: All or none of the provided TouchPoints must supply ids

	p := &input.DispatchTouchEventParams{
		Type:        input.TouchMove,
		TouchPoints: []*input.TouchPoint{}, // fill at least 2 touch points here, which id is 0 and 1 accordingly
	}
	err = p.Do(cdp.WithExecutor(c.chromedpContext, ctx.Target))
	if err != nil {
		c.log.Error().Msgf("touch event error %v", err)
	}

It will be fail with message "All or none of the provided TouchPoints must supply ids"

Workaround: remove ",omitzero" in line 26 of file input/types.go. (The ID line)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions