-
Notifications
You must be signed in to change notification settings - Fork 199
fix: TouchEvent is not available in Safari and Firefox Desktop #127
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
Conversation
|
Hi @zhangbihua and thanks for your contributions Thanks in advance |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✔️ Tested on Ubuntu 20 Desktop with Firefox 105.0 and the webkit version provided by playwright v1.27.0 (WebKit 16.0).
I didn't see errors in webkit prior the changes provided by this PR, so testing with webkit on Ubuntu is probably not relevant.
I will let this PR opened for a few days to let others test the changes with Safari and on mobile prior I merge.
|
@zhangbihua you recently push new commits that are not related to the fix for Safari and Firefox, could you revert them and tell us what you think about the @mayorovad 's proposal (#127 (comment))? |
|
@tbouffard @mayorovad Regarding about the @mayorovad 's proposal, I guess mouseEvent is more generic than TouchEvent in different devices isMouseEvent(this.evt) || (window.TouchEvent && this.evt instanceof TouchEvent)May be more effective |
e0eb3f1 to
4211b35
Compare
|
@zhangbihua thanks for removing extra commit |
Co-authored-by: Анатолий Майоров <mayorov.ad@outlook.com>
|
As a first implementation, I commited the proposal described in #127 (review). It is known as working and I wanted the fix to be integrated in the upcoming release. |
Apple M1 Pro
safari: Version 16.0 (17614.1.25.9.10, 17614)
Can't find variable: TouchEvent in safari
closes #76