Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gui.Click calls backend.move? #57

Open
ant1441 opened this issue Oct 22, 2014 · 0 comments
Open

gui.Click calls backend.move? #57

ant1441 opened this issue Oct 22, 2014 · 0 comments

Comments

@ant1441
Copy link
Contributor

ant1441 commented Oct 22, 2014

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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant