-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
Missing case in Dom.isSingleLeftClick #7736
Comments
👋 Thanks for opening your first issue here! 👋 If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can. |
The other case mentioned in SO, |
Yes, my bad, the The logic of
|
Any updates? |
No updates @Mikhail1Demianenko since it was the weekend. I'm not sure when we'll get to this, but it should be a fairly straightforward fix. If you'd like to give it a try and open a PR, that would be a huge help! |
@misteroneill Sure, I'd be glad to 😊
Here is output after Not sure how to go about it at this point |
Looking at the history, it seems like |
@gkatsev well, the
But the above code breaks the following test case, which has nothing to do with
|
Oh, I see, had it in reverse. It seems like your proposal is basically reverting #6138/f2aedb7. Though, doing so may re-break #6132. Maybe what we want is to change the if to Unfortunately, due to our wide-browser support, changes like these end up being quite finicky because we may end up breaking things when we fix things. |
A solution might end up being something like "if older safari, do what we do now, if newer safari do the new thing" and then we'll need to update our tests accordingly as well. |
@gkatsev unfortunately, |
yeah, I had meant with the appropriate test changes, which is the tricky part. |
Are there any updates on this issue? I'm running into this problem to on macOS 13.2 Ventura with a Magic Trackpad 2. |
@sainttttt if I recall correctly, tests were tricky to fix, so I abandoned the Idea |
@Mikhail1Demianenko Is what has to be done updating the tests to check for old versions of safari? |
@sainttttt something along these lines, I think, yes |
Description
On mac, tapping the touchpad may be interpreted in two ways and thus, passed down to the browser in different ways (briefly discussed here), but one of them is not accounted for in
Dom.isSingleLeftClick
.More specifically, when
button === 0 && buttons === 1
.Therefore,
handleMouseDown
ofSeekBar
does not recognize such an event as click and the event gets dismissed byDom.isSingleLeftClick(event)
(line 798 here) called in the body ofhandleMouseDown
(line 252 here).It then may take 2-3 (up to 8, sometimes) taps to actually handle mouse down (and to change volume or current time, as consequence).
Returning true if
button === 0 && buttons === 1
should do the trick 😊Steps to reproduce
Explain in detail the exact steps necessary to reproduce the issue.
Results
Expected
On each tap, the slider, be it sound or time control, changes its position accordingly
Actual
Due to the nature of the hardware (briefly discussed here), 2-3 taps are needed to actually change the position
Error output
None
Additional Information
versions
videojs
7.17.0
browsers
Tried on latest desktop versions of Chrome, Opera, Firefox, Safari and Edge
OSes
Mac 12.3.1
plugins
None
The text was updated successfully, but these errors were encountered: