Skip to content

gui.Click calls backend.move? #57

@ant1441

Description

@ant1441

Why does click require a movement? The backend should handle this.
This causes failure when the screen doesn't do movements, ie. a touchscreen.

def _click(self, finder, button, times, options):
    merged_opts = self._opts.merge(options)
    location = self.wait_find_one(finder, **options)
    with self._backend.actions_transaction() as actions:
        self._move(actions, location.main_point, merged_opts)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions